Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Search Forums:



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-20-2002
Registered User
 

Join Date: Sep 2002
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How to find i.p address of our server

I don't have root access. How do I find i.p address of our sun server? Thanks.
Sponsored Links
    #2  
Old 09-20-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,090
Thanks: 0
Thanked 21 Times in 7 Posts
Use this command:

$ ifconfig -a


Your output will be like this:

lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 10.14.1.20 netmask fffffc00 broadcast 10.14.1.255

You will have either a le0, hme0, qfe0...the inet is the IP address.
Check the man page on ifconfig
Sponsored Links
    #3  
Old 09-22-2002
cerberusofhate
Guest
 

Posts: n/a
Bits: 0 [Banking]
some admins (such as myself) like to chmod 000 the ifconfig utility, so try pinging a host (your IP will be displayed when you do), that usually works.
    #4  
Old 09-23-2002
asifraj's Avatar
Registered User
 

Join Date: Aug 2002
Location: India
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
hostname -i

or open /etc/hosts
you'll see the list
Sponsored Links
    #5  
Old 09-23-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Thanks: 0
Thanked 3 Times in 3 Posts
I believe that you can ping the hostname.

ping `hostname`

This should return the IP address.

# ping `hostname`
PING myhost: 64 byte packets
64 bytes from 192.111.111.34: icmp_seq=0. time=0. ms
64 bytes from 192.111.111.34: icmp_seq=1. time=0. ms

----myhost PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0



Hope this helps!!!

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do I find my IP address when connecting via VPN. gppande IP Networking 4 05-23-2008 07:36 AM
how to find the IP address of a printer abNORMal HP-UX 2 02-29-2008 06:49 AM
how to get the server name using IP address Sona UNIX for Dummies Questions & Answers 3 09-13-2006 10:47 AM
Find LAN Address jiashi2 UNIX for Advanced & Expert Users 5 08-01-2006 10:09 PM
Find the IP address that a telnet session uses sszago Programming 6 01-22-2002 02:10 AM



All times are GMT -4. The time now is 04:08 AM.