Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding IP Address.

Status
Not open for further replies.

teky

Programmer
Mar 24, 2000
55
US
I am working on a unix box (net.int.com).

I want to find out the IP Address of net.int.com from the
command prompt.

I have tried Ifconfig and other commands but to no use.

Can anybody tell me how to find out the IP Address of my box.

Thanks,
Teky.


 
Actually what you probably want to find out is the ip address of your network interface (serial port or NIC).

netstat -ni

will give you the ip of each network interface configured in your system.

Another way to find out what IP an given host.domain is mapped to is:

nslookup net.int.com

This will resolve the IP address that your DNS thinks the host is answering to.

Hope this helps,
stan
 
the command ifconfig -a should give the interface device as well as the ip address.

-a causes information about all configured interfaces to be displayed






-Danny






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top