Finding Your IP Address

Note: This documentation assumes you already know what an IP address is, see here for more information on IP addresses.

Finding Your Local IP Address (broadband) or Global IP Address (dialup)

Windows 98 And Above

  1. Go to Start
  2. Click on Run
  3. Type cmd and hit enter (use command in Win98)
  4. Type ipconfig and hit enter

It will say something like

 Windows IP Configuration

 Ethernet adapter Local Area Connection Network Connection:
 Connection-specific DNS Suffix . :
 IP Address. . . . . . . . . . . . : 192.168.0.102 <-your IP address
 Subnet Mask . . . . . . . . . . . : 255.255.255.0
 Default Gateway . . . . . . . . . : 192.168.0.1     <-your system Gateway

If you are on broadband, or use a network modem or your internet connection is not through your current PC, that IP is a local ip. Meaning, that is the IP my router gave me, not the IP the world sees. This means that the address is only specific to me in my local network.

If you use dialup with a modem on your current computer, that will be your external IP.

Windows XP

You can double click on the two computers on the task bar at the lower right hand corner also known as your Local Area Connection. Once that opens you can see the status of your local area connection as well as the activity of it. The status referring to whether or not it's connected, how long it has been connected, and the speed of the connection. The activity referring to the number of packets sent and received. Then you click the Support tab. The support tab shows you your IP address, the address type, subnet mask and default gateway if you have one. You can also click details. Details shows you your Physical (MAC) address, IP address, the subnet mask address, the address for your DHCP server, your DNS server as well as when you obtained the lease for your IP address and when it expires.

Windows VISTA

Windows 7

Another simple way is to use a little tool at:http://www.softpedia.com/get/Network-Tools/IP-Tools/JMCNSOFT-My-IP.shtml

MAC OS X LION

WIRELESS

"Wi-Fi is connected to NETWORK1 and has the IP address 192.168.
 1.2"

WIRED

Linux

In Linux the are two commands that are used to find IP addresses of the machines interfaces. These are the new ip command that is used for almost all configuration of networks and the old obsoleted ifconfig command. Most installations of Linux has both of them installed, but some only have the new command.

  1. Open a Terminal/Console
  2. Type ip address show or ifconfig
  3. Look for inet 192.168.1.2/24 resp. inet addr:192.168.1.2

where the 192.168.1.2 is your machines IPv4 address in your LAN.

[user@wikibooks]$ ip add show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:80:C8:F8:4A:51 brd ff:ff:ff:ff:ff:ff
    inet 192.168.99.35  Bcast:192.168.99.255 scope global eth0
    inet6 fe80::0280:c8ff:fef8:4a51/64 scope link
       valid_lft forever preferred_lft forever
[root@wikibooks]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:80:C8:F8:4A:51
          inet addr:192.168.99.35  Bcast:192.168.99.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:190312 errors:0 dropped:0 overruns:0 frame:0
          TX packets:86955 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:30701229 (29.2 Mb)  TX bytes:7878951 (7.5 Mb)
          Interrupt:9 Base address:0x5000

You can also use curl and the ipinfo.io API:

$ curl ipinfo.io/ip
67.188.232.xxx

where 67.188.232.xxx is your global IPv4 address. If you are behind a NAT:et router, this isn't the same as your machines private IPv4 address in your LAN.

Finding your global IP address

To find your global IP which is what the outside world sees, you may use a website such as INet Clue or IP Finding or IP Chicken.

On this page

Click on edit. Anywhere in the edit box type four tildes: ~~~~ Click Show preview (please, not Save page!). Lo and behold, in the preview your ~~~~ has become your external IP address!

In Firefox

Simply download the extension "Live IP Address" to keep track of your current IP address. Useful if you are used to using automatic proxies.

In any browser on any operating system

Many websites can give you your IP address. These include, but are nowhere near limited to:

See Also

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.