image of BT voyager 205 router

Static IP Address.
how to get one..

This page describes how to assign a "Static IP" to your local computer.

If you are looking to get an external static IP, that is; a static IP for your whole internet connexion; see the notes at the foot of the article for more details, and also this post.

What is an IP address?

An IP address is like a telephone number that any computer can use to find any other computer in a network. All networked computers have IP addresses. Most have a static ip, that is, they don't change (for instance, at the time of writing, Google is 74.125.45.100, and typing http://74.125.45.100/  into your browser will take you straight to Google. That is Google's "public IP", aka. "external IP" (one of them), behind their NAT are probably thousands of separate machines, each with different "private" IP's (probably static, or more likely a mix of dynamic and static IP's), 192.168.1.1, 192.168.1.2, etc., we don't see those. But some IP's do change..

Home computers, by default, are set to get their private IP address dynamically from your gateway device (router), via dhcp, In other words, the router supplies a private IP address for your computer to use, temporarily (your router is probably doing NAT, too, and needs your computer to have an IP address, so it knows where to send your data packets). However, dhcp is not an ideal setup; if there is any interruption in the computer's network connexion to the router (you reboot your PC, for instance), a completely new IP address may be assigned1.

For general (beginner's) use, dhcp is just fine, because it's easier; generally works "out of the box", requiring no configuration at all. But if you want to do more; run servers, p2p applications, interesting communication devices, etc, you'll be creating port forwarding/NAT rules on your router, to direct incoming traffic to a particular computer (the one running the server), and if you want those rules to be effective past your next reboot, you will need to get a static IP on your computer, so that the incoming data packets can still find you. Imagine the fun your friends and family would have contacting you if your telephone number changed every day!
 

okay, let's do it!

Okay, so you understand why you need to get a static IP, (apart from the obvious "cuz I want to forward my ports!") it's time to move on to the how part.

"Private" IP addresses usually begin with 192.168** and must be on the same "subnet" that the router is on, in other words, 192.168.1.something, and NOT 192.168.4.something. Only the last number will be different from the address of your router which by default (at least for Voyager routers), lives at 192.168.1.1.  192.168.0.1 is also common.

** There are other private ranges, too, but most people don't need to know about those, 192.168.1.something is what most folk use, and though thousands of millions of machines in the world have 192.168.1.something as their private IP address, they don't interfere with each other because they are behind NATs and other gateways; from the outside, we only see the public  IP address, aka. "external IP".

HOWEVER, if your router uses 192.168.0.something, or 10.0.0.something, or something else from the private IP ranges..

10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255


..then don't hesitate to use THAT instead of the 192.168.1.something addresses I use in my examples, that's what most routers use, but not all. Do check.

The best way to know what subnet your router uses, and thereby which IP to use, is to look and see what IP it has currently assigned to your computer. In Windows, it's in the Support tab of the connexion's Status dialog. A netstat command will get you the same information (and more) on most platforms, perhaps netstat -n. Your router's web interface will likely have all this information, too.


 
If your router has USB, it has probably already grabbed 192.168.1.2 for the USB connexion, so that leaves you with any number between 192.168.1.3 and 192.168.1.254 to use for your private computers to use as static IP's, one unique number per machine.

Remember to disable dhcp in your router before you start assigning static IP's.



Alternatively, somewhere away from your regular static IP's, handy for guests and what-not, perhaps 192.168.1.50 - 192.168.1.99

Fortunately, assigning a static IP is very easy to achieve, and the same principle applies to every computing platform, the only real difference being where to apply the settings. I'll start with the trickiest..
 

Windows®..

The dialog you are looking for is here..

Control Panel >> Network Connections >> Local Area Connection >> Properties >> TCP/IP >> Properties

*phew*

In other words, open the control panel, open Network Connections, right-click the "Local Area Connection" (unless you've renamed it to something else) and chose "Properties", then (in the "general" tab) select "Internet Protocol(TCP/IP)" and click the "Properties" button. Check the "Use the Following IP address" checkbox and enter your desired IP address. If you use 192.168.1.3 as your IP address, the dialog will look something like this..


Windows network connection

..which is a clever screencap, showing you just how to get there. When you're done, okay everything to close all the dialogs. It's smart to use 192.168.1.3 as your address, especially if you plan to use any of the ready-made script kicking around here.

I you are plugging your computers into a network switch (Good Idea!), it's also smart to plug each machine into its corresponding CAT-5 socket, router (192.168.1.1) into the first, 192.168.1.3 into the third, and so on, so you can see which is which at-a-glance.
 

Mac OS X..

What you need is in the "Network" dialog of the System Preferences, and will look something like this..

Mac network connection
Simply click the drop-down menu for "Show", and choose "Built-in Ethernet" to get that screen, enter all the details as above. Click "Apply Now", and you're done!

Did you notice that on the Mac, you enter the Router's address into a space labelled as "Router", whereas, on Windows, you enter it into a space labelled "Default Gateway"? But then, the space for DNS servers is clearer in the Windows box. Seems we all still have a lot to learn from each other.
 

Linux..

This probably isn't necessary, most Linux users know how to alter this stuff, but I suspect one or two may not. Usually you need to edit some plain text file (as root). On some Linux systems, the settings will be in /etc/rc.d/rc.inet1 (or whatever interface you are using), or possibly /etc/network/interfaces. I guess it might look something like this..

linux network connection
Usually, your distro will have a utility for setting up your network, and one of the first things it will ask you, after you tell it you want "manual" and not "automatic" configuration, is what IP address to assign to the machine. It's usually called something like "Network Configuration", or "inet configurator" or whatever. you'll find it! In a shell you can probably do "netconfig", "netcfg", "Ifconfig", "neat", or "netset" (depending on your distro). Same story for UNIX, Solaris, BSD, etc..
 

The Router..

Router 'Fixed Lease'; in this instace, IPCop
 
Many routers allow you to create something called a "static lease". Essentially, this ties a MAC address (the physical address of your network card, theoretically unique to your card) to a particular IP address. This has many advantages.

Firstly, you don't have to mess with ANY of your computer's network settings, ever. Because the router is always going to dole out the exact same address to that computer, the usual DHCP settings will work fine. Your computer asks for any address, and always gets given the exact same one.

It's not possible to give many specifics, because each router is different, but I can tell you that if you use IPCop as your gateway (A Very Good Idea), it's as simple as clicking one of connexions in the "Current dynamic leases" list, and pressing "Create fixed lease", in the DHCP server page. Two clicks, and you're set for life!

You even can reinstall your computer's operating system, reboot, and there's your static IP again!

 

That's it!

From now on, your machine will always be reachable at your chosen address. NAT rules will be permanent, and you can dabble in all sorts of interesting and esoteric communications devices, servers and p2p applications.

If you have a few computers on your private network (LAN), you might want to consider giving them all names to go with their permanent addresses, so you can reach them by typing "workshop" or something into a telnet session/web browser/whatever. You could telnet to your router by simply doing telnet router, for instance. If you develop web sites, this is near essential. See here for more details.

If you like, you can leave feedback (I thought it was about time this page had comments of its own - folk are coming straight here from the search engines, and it's getting popular!). If this page didn't help you, tell me about it!

Have fun!

;o)
(or

notes..

 
references:
1. This is very similar to the way you get a new external IP whenever you dial-up to the internet (some folks still do that) or disconnect your ADSL for a few minutes2 (less scrupulous net citizens use this "feature" regularly!).

2. Although it's usual to get a new external IP when you reconnect your DSL, it's not guaranteed. With some ISP's it happens rarely, with others you need to disconnect for a few minutes or more, with some ISP's, you always get a fresh IP with each connect, no matter how quickly you do it. One thing is certain, though; unless you are paying them for a static IP, your current external IP address will change!

3. Remember, your external IP, and your local computer's IP, are two totally separate things (well, in this context). Almost no one needs a static IP for their external connexion, but almost everyone who wants to run peer-to-peer applications, ftp servers, and so on, will need a static IP for their local computer. The former is supplied by your ISP, the latter is down to you.
 
 

FAQ..

What is an IP Mask? And how do they work?

The IP Mask simply describes which parts of an IP address are not going to change.

IP addresses are currently 32 bit, expressed as four sets of 8-bit numbers (0-255), or "octets". Simply, 255 means none  of the bits can change, 0 means all  of the bits can change (it can also be any number in between). What sometimes confuses, is that IP Masks can be expressed in two different ways..

IP: 192.168.0.<some valid number here>, Mask: 255.255.255.0

and..

192.168.0/24

Are exactly the same. While the first is, if you understand what I've said so far, fairly obvious; the second needs a little explanation.

If you remember that IP addresses are 32 bits, 4 sets of 8-bit numbers, you might realize that the second number simply states how many of those bits will be masked; in this case, 24 of the 32 are masked (cannot change), which is the first three sets, i.e. 255.255.255.0.

Any address using this mask, will be 192.168.0.something 

See?

What's the difference between a public and private IP Address?

We did this! Okay, in short, your GATEWAY has your Public IP address, and your desktop computer (and any other machines inside your home/organization) have private IP Addresses. Simply put; it's outside and inside. Anyone "out there" can see your public IP, but only machines inside your own network know each other's individual private IP addresses.

.. So, let's say a packet of data from "out there", is trying to reach your machine; it could be a legitimate connexion from a client, maybe an FTP client, or some game player, or script-kiddie, or you trying to access your bedroom's WebCam, or whatever. It leaves their machine, and starts its journey, hop-to-hop, attempting to get to yours.

"Out There", is the internet. When you first connected to the internet, via your ISP's backbone, they assigned your connexion an IP address (or more than one, in some cases) from a large pool of IP Addresses they own. Any machine sending you a packet of data can reach you at this IP.

Some folk pay for a static IP, most folk get a dynamic IP; that is, whatever's currently available from the ISP's IP pool, but either way, whatever IP your ISP gives your connexion becomes your Public IP Address. Every time you access a web page, or FTP site, or game server, or announce yourself to a torrent tracker, or anything; that is the IP Address they see at the other end of the connexion, and that is the address they will send the packets back to. This is your Public IP Address.

Up until that packet reaches your gateway machine, it is in the public domain. Anything could happen to it. Once that packet hits your gateway machine, it enters the private domain and what happens next, is up to you..

If your gateway machine is a router, or better yet, a dedicated gateway appliance like IPCop, or Smoothwall is, then you have an array of possibilities. The packet may be on a port you don't know, or don't allow, and may be immediately dropped by your gateway's firewall.

Or it may be on a port your gateway machine recognizes, like the return data from a web page you requested, or your torrent port, or whatever, and the gateway device will have been programmed to forward that packet on to a Private IP Address, another machine inside your network, your desktop, or wherever. The gateway's firewall usually does most of this automatically, sorting out which machines asked for what data, but can also be programmed to forward specific traffic to specific machines, for example, when we create port-forwarding rules for P2P clients on our desktop computers.

Your Private IP Address is known only to machines inside your own network. If you have lots of machines inside your network, they will each have different private addresses, and with a secure gateway, none of these addresses can ever be seen from the outside (unless you hand it out, for example, in your email headers).

This is why if you broadcast your Private IP to a distant server, e.g. 192.168.1.3; the requested data would never return, having been sent to a machine most likely sitting in the exact same building as the distant server, if such a machine even exists.

 

I want to host a REAL domain! A REAL site! I NEED an external Static IP!..  Don't I?

No, so long as your hardware (computer/network/connexion/bandwidth allowance) can handle whatever kind of site you plan to host, it's easy enough to point a proper TLD* at a dynamic IP address. While not recommended for mission-critical applications (there will always be a brief spell after you are assigned a new IP, where the name still points to the old  IP - these days increasingly briefer, as DNS systems improve), hosting a "real" domain from a dynamic IP is most definitely doable.

Once you have purchased (registered) your domain name, you simply need a way to keep it in sync with your ever-shifting dynamic public IP address.

Check out zoneedit.com, a free service which does exactly that. Just like dnydns.org et al, you run your DUC and it keeps your domain name pointing at your IP address. And if you head along to namecheap.com, you can even register your domain, and setup dynamic DNS all at the same time. This is a fine place to add that I consider namecheap to be the best domain registrar in the world.
 
* okay, technically only the "com/org/net/etc." part is the actual TLD, but the acronym has dropped itself into common parlance meaning "a proper (not-sub) domain", like "corz.org" or "ampsig.com" is. Okay, I might have pushed a little. ;o)

 

<Insert any question here>

When troubleshooting network issues, I usually get my solutions following one simple rule.. "Think like a packet of data". As breathtakingly simple as this sounds, imagining yourself as a packet of data, traveling from A to B is the fastest way to figure out where the trouble lies. That's all there is to it! Try it; you will not be disappointed with the results.

 

Troubleshooting..

A number of things can go wrong when trying to configure a static IP on your local  machine.
The most common issues are.. Check these things, and if you're still having difficulty setting up a static IP on your local computer, feel free to leave a question below. It might be something other's could use an answer to.
 

Before you ask a question..

Firstly, read this at least once in your life. I insist!

NOTE: THIS IS NOT A COMMUNITY. And I am not your free tech dude.

If you can't be bothered to read the article, I can't be bothered responding. Capiche? I do read all comments, though, and answer questions about the article. I'm also keen to discuss anything you think I've missed, or interesting related concepts in general.

Questions which having nothing to do with local Static IP addressing will be deleted, which also doubles as your answer! This also goes for questions asking for an email reply.

If you are still sure that you want to post your own, personal, tech question, then please ensure that you first, either..

a) Have read the article (above) and have tried "everything" yourself; or else..

b) Pay me. The PayPal button is at the top right of the page.

cbparser powered comments..

previous comments (twenty one pages)   show all comments

Sabyasachi Paul - 26.09.12 3:19 am

thanks it will help me a lot


keith - 12.10.12 3:37 pm

hi do i need a dyndns account if i have a static i.p and is a static i.p free

No, and No, not usually. ;o) Cor



Cam - 15.10.12 4:45 am

I had a little web server at home, configured with DynDNS. My provider (Xfinity smiley for :evil:) sent me a letter saying that they will block my connection if I continue to do this, as it is against the terms of their license agreement. I called and asked them what it would take to get a static IP block and they told me it would cost an extra $15 a month for one, or $25 for a /30 block. That's a little ridiculous, I think. I can, however, switch to a business connection and use my own static IPs for the same price I pay now. ARIN only provides blocks of /20 or higher, so I was wondering if there are any intermediaries that will sell access to a smaller block of provider-independent addresses.

I did plenty of Googling and found a service like that for RIPE addresses. I'm not sure that would work, or if it did, maybe it would mean tons of hops to route to my server.

I would just get a new ISP. ;o) Cor



Andy - 01.11.12 5:00 pm

WOW!! Not only is your article thorough and explanatory, but your comments are even better! I laughed almost the entire time I read these questions and answers. Keep it up man!smiley for :lol:

You should check out my .htaccess pages, they are a scream! ;o) Cor



Kladde - 21.11.12 8:30 am

I just found this post. And I have problems with my router. When trying to access my router over the internet it does not work. This I get:
The wireless router currently uses a private WAN IP address (192.168.x.x, 10,x,x,x, or 172.16.x.x). This router may be in the multiple-NAT environment and DDNS service cannot work in this environment.

I know this worked before. Can it be that my router is first connected to a IP phone box? And not straight to the WAN?

So where do I change to a public IP? Sorry you may got this questions before, but I am a beginner and have tired to make it work for over 5 days without success.

You cannot change the public IP (see above). ;o) Cor



nold17 - 22.11.12 7:04 pm

tnx for that article sir/mam..


andrew prasad - 24.11.12 4:18 pm

i am getting the internet from a usb wifi dongle can i still follow this how to i am on osx

thankyou
andrewsmiley for :ken:

Probably. Try it. ;o) Cor



Brendon - 27.11.12 4:34 pm

I just have a preliminary question before I can start this process. I rent (university student) and the landlord JUST started letting us have access to the main wifi network instead of a crappy guest account. What I need to know is if this will &^%$ with the router and screw it all up. I just want to setup a static ip so I can seed torrents and not get in trouble by leeching all the time. Can you tell me if this will screw up the router/network or if its just for my laptop that this will be in effect for. There are 4 other people with computers so I need to make sure this will only affect me. Thanks a lot

If you do it correctly (create a range for dynamic addresses away from your static addresses) then it will work fine. Otherwise, it will mess up everything, and you roomies will want blood. Before you start, make a backup of your router settings. ;o) Cor



robenkk - 29.12.12 6:52 pm

Greetings!

Firstly, thank you ever so much for the effort in putting together this wonderful tutorial. I had followed many versions of the same advice about port forwarding and creating a static IP, and whilst they are straight forward enough to do, my external IP kept changing, as I have now learnt is down to my ISP.

The main reason I was trying to set all that up was to run my own minecraft server, which would be impossible without a static external IP for people to connect to. Also, for whatever reason, port forwarding just would not work.

Once I signed up to no-ip.org, got my domain name and started running the DUC, suddenly the port was now open! Although I cannot even begin to decipher as to why. And if I have it right, I can use my domain name in place of my external IP, for other people to connect to my server, since the no-ip.org service will redirect the necessary traffic to my internal IP, bypassing the dynamic external IP, so long as people connect to my domain name. Is that correct?

I think I have also realised that I don't really need the DUC since my internal IP now doesn't change.

Thanks again. You're awesome! smiley for :D


Emma - 07.01.13 1:37 pm

Dear Corz,
I found your articles very informative. I have used your
info. on Statical IP's.I have also been reading your article on Voyager 205. I have Voyager 220.Spent ages trying to connect it after it dropped. Wish I had known about your site then.Keep up the good work.Many thanks.

Best Wishes For the New Year
Yours Sincerely,
Emmasmiley for :ken:


tech - 12.01.13 6:12 pm

here is my problem if your still there. i want to use open d.n.s for there web filter. however i c'ant register or add my ip address (external)for my network on there site so i can customize the internet filter. My public ip address i believe is sheared and it is dynamic although it rarley changes. since its not my personal address how can i use it to represent my network out side of using s domain name


As far as I know, you don't even need an account, simply use their DNS servers instead of your own..

http://use.opendns.com/

;o) Cor



Mary - 22.01.13 1:24 pm

I don't know why your screen showed on this computer this morning but I really like the way you explain this in simple terms. I've been dabbling in this for a few years. I am a 59 year old female and not computer savy. At one time, however, back in the windows xp days I was able to download a terminal server hack and get my server computer info from my laptop anywhere I was. I was pretty proud of that. Now I have vista home (64) bit and I have not been able to do that. In addition I "upgraded" my router at comcast's request to a "fancy" one with 10.0.1 addresses. I have to configure the router through the comcast website or whatever. Anyhow, I have only one computer with a static ip but I still cannot remote connect from my laptop so I have given up. It would be great fun if I had more time to work on this. But, alas, I must make a living instead! smiley for :lol:

I know that feeling!

Configure the router from their web site?!? That sounds dubious! Are you sure you can't just login at 10.0.0.1, or wherever it's at? (Angry IP Scanner is your friend!).

And if you really do need to configure your router from their web site, screw that, mail them and demand they immediately forward port 3389 to your desktop machine!

;o) Cor

ps. are you SURE your router can't be got to at http://10.0.0.1 ???



Oz - 29.01.13 5:43 am

In simple steps, could you explain me and probably the two other netflix users out there, how to appear from a french canadian ISP so we can get films, subtitles and closed caption in French out of the Netflix server?

Thanks indeed

Simply, use a Proxy Server. Google/Wiki that. Then install a Firefox plug-in (aka. "Add-On") like Proxy Tool, and away you go.

Of course you will want to select a proxy that resides in the same country that you want to appear to be from. The more obscure the better, less likely to be recognised as a proxy.

;o) Cor



Vincent - 09.02.13 3:30 pm

Hi thanks for a very very useful site. Except for one thing. I live in a country which does NOT have wire connections in many areas (ie Cable ADSL etc) so we use a wireless USB modem which connects first to the ISP provider and of course its all dynamic IP's. Is it possible to set up a static IP WITHOUT the ISP admin doing it through the USB WIRELESS MODEM ie HUAWEI. Apparently www.mystaticipaddress.com seem to claim that it is possible but I have not seen this anywhere else. Apparently they use an encrypted program that the USB device cannot "see" Thanks for your help.smiley for :lol:

I have no idea about your setup, but if you are assigned your IP directly from your ISP, the answer is probably no, you need to pay for these things. Unless you need an actual dotted octal IP address, just use no-ip.com or similar and get a static domain name, instead. ;o) Cor



Apathea - 19.02.13 5:50 am

someone has been threatening me that he have detected my Ip address and location when i tried to log in a social networking account. and he also said that it was also detected when i purchased something in an online shop using my credit card. Is it possible that my IP address be detected even when I am using a mobile broadband stick when connecting in the internet?how can i hide my IP?

Just like it was "detected" when you posted here (currently 64.104.*.*), even visited the page. This is perfectly normal and nothing to be alarmed about, unless you have some reason to hide your identity.

You may well have such a reason. If so, there are levels of hiding, starting with using a proxy for your web traffic, all the way up to Tor, multiple/VPN tunnels and such.

I wouldn't imagine that another user on a social networking site would have access to your IP data, but then, those things are riddled with security vulnerabilities so I wouldn't discount it, either. I don't know if you can do Facebook from inside Tor, I imagine Tor exit nodes get blacklisted quickly.

There's no pressing need to hide you IP online unless you are doing something illegal, or doing something within the realm of an illegal government, which is, sadly, most of them.

And remember, even with your actual IP address, they don't know your precise physical location, they would need to ask your ISP (via a court order) to supply that data. They could probably get the country correct, but after that, without seriously advanced tools it's mostly uncertainty.

;o) Cor



gifty - 27.02.13 2:30 pm

HI there i am here for someone to give me ip


Antonio - 23.03.13 9:44 pm

Very comprehensive. Thanks a lot. I will remember your site.


Bendy - 24.03.13 11:13 pm

This is an extremely informative page.

I fear this may be a silly question but here goes: is it possible to map multiple internal nodes in your network (assuming you only have 1 IP-address to the outside world) to domain-names using a service like no-ip.com?

Please indicate in your response if you'd prefer me to purchase a consult (rather than simply delete smiley for :erm: ), I'm aware that you provide consultation on technical problems such as this one.

Thanks in advance!

Yes and No. Yes, you can get the effect you want, but probably not in the way you imagine..

You need to do two things. 1. "map" all domain names to your external IP address (with your router/DUC/etc.) and then 2. forward whatever ports a particular domain name will need to that particular machine.

If more than one domain needs the same port (e.g. port 80, for web traffic), you should host those domains on the same physical box. Then it is trivial to use Apache's virtual host capabilities to route each domain's traffic to the correct content.

If that isn't possible, setup Apache on one machine and use it's Proxying capabilities to route web traffic to the other machines.

Donations welcome!

;o) Cor



ray - 19.04.13 2:10 am

great stuff very helpful


Souleymane - 25.04.13 11:20 am

Thanks for the article! I was wondering if a static IP will allow me to access my Netflix account from overseas (currently forbidden)


a.shiribwa@yahoo.com - 13.05.13 7:27 pm

Halo there? First and foremost thank you very much for enlightening me on how to get a static IP.
I have been experiencing a problem of not being able to share my internet to my other laptops. I have connected my LAN and it works perfectly. I am using windows vista, When i tried your static IP address, after a few seconds there was no internet access. I went back and choose "choose ip address automatically"then the network access came back.
Recently i upgraded to windows 8 then installed connectify hotspot. It never worked yet on my previous version of Vista it worked perfectly. I formated back the comp to original factory settings then I have tried connectify.me hotspot but still it cannot share internet.
I have tried to manually create an adhoc but it tells me waiting for other users to connect. Once i try use the other laptop to connect. It connects but without internet.

Help me please. Concerned user.

Arnold Ndanyi, from Nairobi, Kenya


 

Leave a comment, become part of this site!


First, confirm that you are human by entering the code you see..

(if you find it difficult to read, refresh the page for a new code)


Enter the 5-digit code this text sounds like : lower-case zed, Upper-Case Eff, sicks, lower-case oh, Upper-Case Bee