Please support VectorLinux!

Author Topic: IP [SOLVED]  (Read 949 times)

666lawyer

  • Member
  • *
  • Posts: 60
IP [SOLVED]
« on: February 23, 2010, 04:43:20 am »
Hi,

there any linux command directly to me from the ip address of my machine?
« Last Edit: February 24, 2010, 07:51:29 am by 666lawyer »

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4072
Re: IP
« Reply #1 on: February 23, 2010, 04:55:51 am »
Not sure what you are looking for..
To find your local IP address, in a terminal use command "ifconfig".
To find your public address, like a DSL or cable modem, in your browser go to http://www.whatismyip.com/

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: IP
« Reply #2 on: February 23, 2010, 10:30:49 am »
/sbin/ifconfig if you are not root.

Bigpaws

666lawyer

  • Member
  • *
  • Posts: 60
Re: IP
« Reply #3 on: February 24, 2010, 07:50:54 am »
 ifconfig |grep addr:|awk '{print substr($2,6)}'|grep -v 127
« Last Edit: February 26, 2010, 09:45:52 am by 666lawyer »