Wednesday Jun 17, 2009

How to get the current ip address

On linux to get the address from eth0

/sbin/ifconfig eth0 | grep "inet addr:" | cut -d ':' -f 2 | cut -d ' ' -f 1

Comments:

Post a Comment:
Comments are closed for this entry.