Guest sammyf Posted July 13, 2005 Posted July 13, 2005 Just popping by to let people know that I wrote a small autoIt3 script which some people might find usefull (or perhaps not It generates an HTML file containing a redirection to your current dynamic IP address and then trasmits it to an FTP server of your choice. It's a bit like having a static IP address, but much cheaper (it also lacks some of the advantages of a real static IP address, but nothing's perfect you can get the executable and the .au3 script at http://perso.wanadoo.fr/sammyf/redirect2local.ziphttp://perso.wanadoo.fr/sammyf/redirect2local.ziphave fun,Sammy
w0uter Posted July 13, 2005 Posted July 13, 2005 im behind a router ... what now ... (btw that looks like my FTPxxx UDF ) My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Guest sammyf Posted July 13, 2005 Posted July 13, 2005 well .. I guess that if you're behind a router, then it won't work ... nothing I can do about it I'm afraid It only works for computers which are directly connected to the internet (the gateway in a LAN for example) And no .. I was *really* lazy, so I didn't even write the FTP routines. I'm merely using FTP.EXE which comes with windows for the file transfer bbye, Sammy
MSLx Fanboy Posted July 13, 2005 Posted July 13, 2005 What about the _GetIP function? That get's the public IP... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
layer Posted July 13, 2005 Posted July 13, 2005 Aww, nice work... But I too am behind a router. I'm too scared to make static IP addresses for my network because I've never done it and I don't want to screw anything up! FootbaG
Guest sammyf Posted July 13, 2005 Posted July 13, 2005 Well, if I'm not mislead, getIP just returns the system var @IPAddress1. My script goes a little bit beyond that Anyway, the thing with static IP addresses is : if you don't have a web- or ftp-server (or are running a dedicated game server), then you don't really need them. And as someone on IRC told me, "nice work, but why don't you just use dyndns?" The answer is of course that I wasn't aware of all the dyndns servers out there, otherwise I'd have saved my time bbye, Sammy
jftuga Posted July 14, 2005 Posted July 14, 2005 You could always have your script visit somewhere like myipaddress.com and parse the results. -John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
MSLx Fanboy Posted July 14, 2005 Posted July 14, 2005 If InetGet("http://checkip.dyndns.org/?rnd1=" & Random(1, 65536) & "&rnd2=" & Random(1, 65536), @TempDir & "\~ip.tmp") Then That's the 2nd line in the GetIP function, it parses it directly from a public web server. Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
Nova Posted July 14, 2005 Posted July 14, 2005 (edited) If you go to www.no-ip.com you can sign up for a free hostname.Then you download for free again a simple tool from their site which updates your ip to your new host name.So there is a completly free way to get a static ip.It takes about 5mins to set up, you get a name like myname.no-ip.info.I log into my ftp by forwarding the ip and port of the computer on my network thats running the ftp server to my router, and then I can log into my site using the address ftp://myname.no-ip.info without ever having to worry about my ipchanging. Edited July 14, 2005 by Nova
Wus Posted July 15, 2005 Posted July 15, 2005 I do the same as Nova... i liked the hopto.org domain better though, reminded me of seus
Sunblood Posted July 16, 2005 Posted July 16, 2005 jftuga said: You could always have your script visit somewhere like myipaddress.com and parse the results.-John<{POST_SNAPBACK}>http://www.whatismyip.org would be MUCH simpler
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now