Determining one's own IP address.

Carl M. Fongheiser cmf at obie.cis.pitt.edu
Thu Dec 14 06:13:21 AEST 1989


In article <4429 at ur-cc.UUCP> leadley at uhura.cc.rochester.edu (Scott Leadley) writes:
>If you don't know what interfaces are connected to the machine try:
>
>	% netstat -i
>	Name  Mtu   Network     Address      Ipkts   Ierrs Opkts   O...
>	de0   1500  x-net       x-machine    15890511 4     14812969...
>	lo0   1536  127         localhost    134349  0     134349  0...

Yep, and if you do "netstat -in", you won't even need to run ifconfig,
since netstat will print out the address without turning it into a name.

				Carl Fongheiser
				cmf at unix.cis.pitt.edu
				cmf at pittunix.BITNET
>-- 
>					Scott Leadley - leadley at cc.rochester.edu



More information about the Comp.unix.wizards mailing list