If you haven't recorded your IP address, it will be displayed by the
ifconfig command on Unix or by the IPCONFIG command on Windows 95 and NT. (Check your manual pages for any options required by your brand of Unix: Sun wants
ifconfig
-a
). You should see output similar to the following:
server% ifconfig -a
le0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING >
inet 192.168.236.11 netmask ffffff00 broadcast 192.168.236.255
lo0: flags=49<<>UP,LOOPBACK,RUNNING<>>
inet 127.0.0.1 netmask ff000000
One of the interfaces will be loopback (in our examples
lo0
), and the other will be the regular IP interface. The flags should show that the interface is running, and Ethernet interfaces will also say they support broadcasts (PPP interfaces don't). The other places to look for IP addresses are
/etc/hosts files, Windows
HOSTS files, Windows
LMHOSTS files, NIS, NIS+ and DNS.