Articles

Print

Find Local IP Address

Written by Joshua Lyon on .

Here's a quick tip for those of you looking to find your LOCAL (as in within your network) IP address.  In Windows, you would simply issue the following command from the command prompt (Start > Run > "cmd")

ipconfig

Which would yield something similar to the following results.

U:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix  . : mshome.net
IP Address. . . . . . . . . . . . : 177.21.101.137
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 177.21.101.1

From a Linux shell, you would issue the following:

ifconfig

Which would yield something similar to the following results

eth0     Link encap:Ethernet  HWaddr 00:0F:EA:91:04:07
 inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
 inet6 addr: fe80::20f:eaff:fe91:407/64 Scope:
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:31167 errors:0 dropped:0 overruns:0 frame:0
 TX packets:26404 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
RX bytes:38338591 (36.5 MiB)  TX bytes:3538152 (3.3 MiB)
Interrupt:18 Base address:0xc000
lo        Link encap:Local Loopback
 inet addr:127.0.0.1  Mask:255.0.0.0
 inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:1994 errors:0 dropped:0 overruns:0 frame:0
TX packets:1994 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0			
RX bytes:188041 (183.6 KiB)  TX bytes:188041 (183.6 KiB)

Comments   

 
Anon
+1 #23 Anon 2011-12-26 18:31
Default gateway =/= IP

Netw0rking n00b
Quote | Report to administrator
 
 
Help Needed
+1 #22 Help Needed 2011-11-27 02:47
Is it the same as IPv4 address?
Quote | Report to administrator
 
 
aniruddh
+1 #21 aniruddh 2011-05-20 06:11
my cmd prompt doesnt show the default gateway..what should i do
Quote | Report to administrator
 
 
Dev
+1 #20 Dev 2011-05-20 05:45
I had another method in mind along with using IP checking tools like IP Elk but this clearly is a new and improved idea for me. Will definitely take a deeper look at this so Bookmarked for now.

Thanks and Regards,
Dev
Quote | Report to administrator
 
 
cheap computers
+1 #19 cheap computers 2011-02-07 20:53
i have been pleased after reading this blog the knowledge which has been provided via this blog is simply tremendous.
i really appreciate the blogger for doing this work.
Quote | Report to administrator
 
 
JP
+1 #18 JP 2010-10-12 05:38
Your "Black box" it's a router. His IP adress it's called "Gateway" and his default Gateway is 192.168.1.1 ;-)
Quote | Report to administrator
 
 
eric
+3 #17 eric 2010-06-13 14:41
how do you find you local ip address ??
Quote | Report to administrator
 
 
Omme
+2 #16 Omme 2010-05-18 06:37
hanx very mush dude!";-);-);-)
Quote | Report to administrator
 
 
Latha
+1 #15 Latha 2010-05-10 21:39
Thank U......
Quote | Report to administrator
 
 
Leo
+1 #14 Leo 2010-03-09 04:49
Thank you very much!
Quote | Report to administrator