by tomsoulsufer on December 24th, 2004

tomsoulsufer

Question

Help answer this question below.

How can you find out your IP address in Linux?

Answers. 2 helpful answers below.

  • by emilyw on June 18th, 2005

    emilyw

    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)

    • Like
    • Report

    No comments. Post one | Permalink

  • by RC loves ice cream on May 29th, 2009

    RC loves ice cream

    Type the command ifconfig
    If using Ubuntu, right-click the connection icon and select "connection information"

    • Like
    • Report

    No comments. Post one | Permalink

Want to attach an image to your answer? Click here.

Did this answer your question? If not, then ask a new question or create a poll.

You're reading How can you find out your IP address in Linux?

Follow us on Facebook!

Related Ads

ANSWERBAG BUZZ

Linux show ip address
Linux ip address show
Show ip address linux
Linux get ip address
Linux get ip address command line