Author Options:

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

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



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/


Thanks for your reply

Havn't I change my ip from static to dynamic though? By only letting connect on port 0.2 ?

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.

Would changing these WAN settings be better than using No-IP?
How does this WAN work?


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 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 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.