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 64.233.183.147, and typing http://64.233.183.147/  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.255 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..
 

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

<Insert any question here>

When troubleshooting network issues, I get my solutions by following one simple rule.. "Think like a packet of data". As 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 it! Try it, you will not be disappointed with the results.

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

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 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 which data, but can also be programmed to forward specific traffic to specific machines, for example, when we create a port-forwarding rules for P2P clients on our desktops.

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.

This is why if you broadcast your Private IP to a distant server, e.g. 192.168.1.3, 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 existed.

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, 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 (nine pages)   show all comments

R.K. - 09.04.09 4:04 am

static ip address


memesboys - 15.04.09 12:25 am

I am having the same problem as "Eddiewa" from 2/7/09, but haven't seen a response to his problem yet. Any suggestions on connecting a Dell desktop running Windows XP using Verizon DSL and a Linksys WRT54G router to a new Dell Inspiron 1545 Laptop with a wireless NIC? My desktop will connect to the internet, but my laptop will not. It "sees" the connection and says I have a excellent connection, but when I try to connect, I get an error message. I have spent hours on the phone with Dell and Verizon - HELP!!!!


MontBlack - 15.04.09 8:34 pm

hello. I want to make a counter strike server but i can't because i have dynamic ip. and when i open the server it says the ip is 192.168.1.1 and its bugging me because if i use my ip it says TCP /IP not found in console. I checked at properties tcp ip and it was obtain ip adress automatically. should i do the settings and add all the settings.Don't i have to call my internet provider to give me a static ip? You think it'll work? Thanks..


ahamed - 22.04.09 8:11 am

hello,
I found a new site to check out IP Address details through http://www.ip-details.com. It is useful to find out IP address details, domain info search, internet speed test and ip details on our website, etc., Its a free of cost.



chamila - 02.05.09 1:08 pm

send me



David - 04.05.09 10:41 am

Thanks for your article, clearly written!

I have recently installed an IP camera (LevelOne WCS-2030) which can be connected wi-fi to my home network.

In order to remotely view the video stream, the remote machine must route to a WAN IP and read the video streams forwarded by the main computer at home (ie Camera -> Main computer -> Router -> Modem -> Internet). However since the WAN IP is not static (sometimes the line dropped and reconnected itself) the remote computer cannot be set to route to one specific address.

This make remote monitoring very frustrating, any tips?


Webcam - 07.05.09 12:52 am

I have exactly (I think...) the same issue as David. We have security cameras installed at home and these are connected to our home router and through that to a wide area network (our security camera provider) and on to the internet. To view remotely (i.e. away from home) we access an xxxxxxx.dyndns.org address. However, if the internet drops out at home then the WAN tries to assign a new IP and will not assign it automatically. So we have to access the WAN server and reset the IP - then the dyndns address works again. But we have to reset the WAN from the home computer and not remotely - for a reason I don't understand that doesn't work... Any tips or tricks?? Thanks.


Zin Armagadan - 11.05.09 7:20 pm

I've tried everywhere on the internet at least three or four times from each place I've visited, and it still wont work. At all. I'm just going to give up now since somehow everyone knows how to get this working but me.


John - 13.05.09 1:46 am

A good way to find your external ip address is by going to a website that tells you your ip address. I like to go to www.ipdonuts.com usually since they give you a nice picture of a donut. But there are other sites out there such as www.whatismyipaddress.com or www.ipchicken.com.


Ajith - 13.05.09 9:49 am

Hi, I want to get accsess to my home computer directly from outside. I have internet through ADSL and a router but no static IP address that I can see from outside. Please tell me the steps I should follow to achieve this goal.
Thanks, Ajith


??? - 15.05.09 7:10 pm

Hi,

What exaclty is a static IP address anyway???


IPCONFIG - 16.05.09 7:02 am

Hello,

So, about a week ago my internal wireless stopped working on my laptop. I would get a mssg about limited or no connectivity.

When I run ipconfig to get my ip address i get following mssg:
-- A device attached to the system is not functioning.
Please contact Microsoft Product Support Services for further help.
Additional information: Unknown media status code.

Here's the interesting part: I assigned a static ip 192.168.1.5 and it now works, but it's not consistent-

Looking online I thought it was a winsock issue so, I removed the reg keys and they were reinstalled.

Any advise would be greatly appreciated!


vali - 27.05.09 4:05 am

Hi cor,

Thanks for all the time you took to answer all questions posted before. Here is what I am trying to do:
There is a live camera type of software that enables user to bid on something remotely. Due to the firewall settings I have at work, I am not able to get to this application as it comes back with a message like "server unreachable". I can run this applcation fine from my home computer. So the other day it finally dawned on me that I could use an application like VNC to start a server on my home laptop (on a home wireless network with LINKSYS router) and run a "vnc viewer" session from work to access the aforementioned application through my home laptop computer. I have followed your directions and created a no-ip.com account (xxxxx.myftp.org), installed the DUC thingie (v2.2.1). I can see my ip address and I can ping my laptop by either IP address or xxxxx.myftp.org from either the laptop itself or the XP desktop I have on the home network. The only problem is I cannot ping this address from outside my home network. I vnc'd into my work computer and try to ping my laptop from there without success. I also tried to vnc from my work computer into the home computer without success as well. I also tried your "simple p2p port probe" with a bunch of ports (1,2,80,8080...) and most of the times I get "connexion timed out". What am I doing wrong?
I called my ISP provider and I need a total revamp of my internet connection: need to replace cable internet with DSL, eliminate the IP VONAGE phone, and to top it all off pay $15/month extra.

Your help is greatly appreciated,

Vali


rose - 01.06.09 11:13 pm

how the hell do you set up the address


George Aidam - 03.06.09 2:02 am

Your details are absolutely incisive and capable of bringing about a drastic comprehension of what is required to timely solve a mind bulging problem.
Much tanks!


sivy - 14.06.09 12:21 am

I found a new site to check out IP Address details through www.ipaddressgeolocation.com/


Thomas - 14.06.09 7:37 am

Very Informative site ... Really useful.

I have installed 3 Dlink Network cameras, i am able to view all 3 cameras in local network.
but how do i access remotely. Could some please advise on how to create static ip for this situation.
I am using
Dlink Internet Camera DCS-2120 and Dlink Router

Please Advise


WessMiguwl - 15.06.09 2:36 pm

I try to go into 1.evony.com, but not able to, when spoke to internet provider, they told me that maybe I need to set a static ip address, please advise and would apprteciate list down the setting procedures step by step as I am not an IT personnel and know very little about Computer, it meant you need to guide steps by steps even to the simplest that you need to regard as I know nothing.

Singapore Cell phone 065 91782058

Thank you.


gottaproblem - 15.06.09 8:03 pm

Ok, so I set up my computer to have a static IP, but my mom try's to connect to the network and it won't work. I have the modem set up on my computer. How come she can't connect, and how can I get her to?


trying to learn - 19.06.09 12:21 am

I understand static IP and internal and external addresses. If I want to connect to my office computer from home using Remote Console how do I get it to find the public address and then get inside the NAT to the static IP I have established for the office machine?


sri - 20.06.09 8:32 am

hai,
It's nice.We can find the geolocation of an ip address by using ip details.It's also useful for me.


 

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 you, Upper-Case Bee, zeero, lower-case ex, Upper-Case Zed


 
 
[site notice]

Don't you want to click the world's largest PayPal button?