Instructables

Does making a static ip to the the router, make the ip on the internet static?

I have been running a server and have noticed that my ip to the router (192.168...) changes and the one displayed on the internet (94.1...) also changes.

I have setup a static ip on the first port (0.2) and was wondering if when i connect to the internet each time the 94.1 etc that adress will change?
People connect to my server via my ip adress and then my port number and I have noticed I have to keep giving it out as it changes..
So is there away to keep that ip static? or should it stay the same now?

Many thanks

Oscar

Your IP address depends on the servive your ISP is providing - mine gives 8 fixed IP addresses, which is great for running servers.

Some other ISPs allocate only dynamic IP addresses to stop you....

Arguably though, dynamic IP addresses are more secure, if you don't run services on the back of them, which is a reason why they are popular.

There are services around that provide a kind of DNS lookup for folks sstuck with dynamic allocation, like these guys http://www.no-ip.com/

Steve
oscarthompson (author)  steveastrouk2 years ago
Thanks for your reply

Havn't I change my ip from static to dynamic though? By only letting connect on port 0.2 ?
No, I think that's only your LAN side. Who's your ISP ?
oscarthompson (author)  steveastrouk2 years ago
Sky - netgear router

Oscar
Also, your router has "WAN" settings, which largely come from your ISP and "LAN" settings which are yours. Your LAN settings can allocate static or dynamic IP addresses to YOUR machines, but only the WAN settings affect the external view of your machines.
oscarthompson (author)  steveastrouk2 years ago
Would changing these WAN settings be better than using No-IP?
How does this WAN work?

Oscar
You're on Sky, you're screwed. You can't change the way Sky decide to allocate their IP addresses - its part of your contract with them anyway. YOu have to use a service like No-IP I'm afraid - unless you fancy paying 25 quid a month for a proper ISP, with fixed addresses.

Steve
oscarthompson (author)  steveastrouk2 years ago
Hmm... No-ip does look pretty good actually

Thanks for your replys!
frollard2 years ago
Steve has pretty much covered it all:

Outside wan address is set by dhcp, and often will change whenever the router pulls a new ip request from the modem/isp. If you don't have a static IP, then this address will change randomly.

Inside the LAN the 192.168 address is also usually set by dhcp, and usually starts in the 0.100 or 1.100 subnet. I would recommend setting the IP manually to something in the 0.150 range...that way a dhcp address on wifi or the like won't accidentally take your 192.168.0.2 if it asks for an ip before your server.
Another option is on some routers to configure the dhcp server to give a specific computer a specific address -- that way it won't get a random internal address each time.

Lastly, a solution like no-ip.com allows you to run a program on your server that checks the wan ip regularly and updates a pseudo-website to redirect to your IP. With the internal port forwarding set correctly it will point straight to your server via the web address.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!