- NEW!
Help answer this question below.
You can either find out your IP address through the command line interface or through a Web-based interface that can determine your address for you.
Through command line interface:
Note: Root access may be required to run these commands. These commands will all be launched from the command line.
1. Launch a command line interface. (This will vary depending on operating system distribution.)
2. In the resulting command line window or screen, type ifconfig.
3. Press Enter. For example, typing ifconfig at the command line:
[sygny@linuxbox /home]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:5A:1A:DC:65
inet addr:198.209.253.169 Bcast:208.141.109.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18940 errors:1 dropped:0 overruns:0 frame:2
TX packets:11554 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:100
RX bytes:4087250 (3.8 Mb) TX bytes:2499423 (2.3 Mb)
Interrupt:11 Base address:0xd000
In the example above, the IP address is labeled inet addr:198.209.253.169.
The subnet mask is listed as Mask:255.255.255.0.
Through the Web:
Go to http://checkip.dyndns.org — this site shows the IP address of the host machine visiting the link. (May show the IP address of a firewall instead of the local machine, if the local machine is behind a firewall.)
(from http://www.more.net/technical/netserv/tcpip/viewip.html)
Type the command ifconfig
If using Ubuntu, right-click the connection icon and select "connection information"
How Do I Access a Computer in Another Place?
by Answerbag Staff on August 25th, 2010
| 1 person likes this
What are the physical topologies, uses, advantages, and disadvantages of LAN (Local Area Network)?
by KATTALNUVA on April 30th, 2010
| 1 person likes this
What do you consider the single most important reason to pay attention to faulty terminations and excessive horizontal wiring spans?
by lady1990 on July 29th, 2010
| 1 person likes this
What is the different between synchronous and asynchronous transmission with examples?
by daredevil on November 14th, 2009
| 1 person likes this
What is the difference between routable and non-routable protocols?
by rcaries07 on November 27th, 2009
| 2 people like this
You're reading How can you find out your IP address in Linux?
Comments