Sign in to follow this  
Followers 0
Guest sammyf

pseudo static IP address

11 posts in this topic

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 :evil:

you can get the executable and the .au3 script at

http://perso.wanadoo.fr/sammyf/redirect2local.ziphttp://perso.wanadoo.fr/sammyf/redirect2local.zip

have fun,

Sammy

Share this post


Link to post
Share on other sites



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 :evil:

bbye,

Sammy

Share this post


Link to post
Share on other sites

What about the _GetIP function? That get's the public IP...


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 :evil:

bbye,

Sammy

Share this post


Link to post
Share on other sites

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())

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by Nova

Share this post


Link to post
Share on other sites

I do the same as Nova...

i liked the hopto.org domain better though, reminded me of seus


Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0