Select Page

What is the IP address of my PC?

What is the IP address of my PC?

My first technical post in this blog. Actually I have posted this already in my very old blog created few years back in blogspot. No one visiting that blog. Including me ? So, reposting that again.

You know what is your PC’s IP address? Don’t know? :( No probs.. this post will help you. :)  You may have different OS in your PC. You can get the steps for all the OS below.


WINDOWS

In versions of Windows from Windows 2000 and later, run the Windows Command Prompt. You can open Command Prompt as follows.


Start >> All Programs >> Accessories

In the command prompt, type ‘ipconfig‘  and you’ll get something similar to this:

Windows IP Configuration

Ethernet adapter Local Area Connection 2:


Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 192.168.1.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

(In Windows 98 and 95, you can Start->Run a program called “winipcfg” and get roughly the same information without using a command prompt.)


 
LINUX

Open terminal. You can open terminal as follows.


Applications >> Accessories >> Terminal

Execute the command ‘ifconfig‘ (ipconfig in Windows). You will get something similar to this:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:b9:05:91:c8
          inet addr:172.17.3.11  Bcast:172.17.255.255  Mask:255.255.0.0
          inet6 addr: fe80::219:b9ff:fe05:91c8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1169781 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1459936 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:560307361 (560.3 MB)  TX bytes:1599606612 (1.5 GB)
          Interrupt:16

The IP address is ‘172.17.3.11’ near to ‘inet addr’. Since I’m behind a router, this is not the IP address that will actually be used when I access the internet.


 
MAC OS

Open terminal. You can open terminal as follows.


Applications >> Utilities >> Terminal.

Execute the command ‘ifconfig‘. You will get an output with a line similar to this:

inet 127.0.0.1 netmask 0xff000000

You can find the IP address near to ‘inet’. You will also get IPV6 address, Broad cast address, Gateway address etc., as like in Linux.


 

About The Author

It's me, Nivas Baskaran , a product of the 90's living in Bangalore. This is my personal blog and I'm here to post some cool stuffs. I love spending time with my Friends. Jovial in nature. I love Tea/Coffees. Ping me to know more about me :P

Leave a reply

Your email address will not be published. Required fields are marked *


Subscribe for Updates

Like Us on Facebook

Categories