VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: IP [SOLVED]  (Read 1010 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 »
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4141
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/
Logged

bigpaws

  • Vectorian
  • ****
  • Posts: 1872
Re: IP
« Reply #2 on: February 23, 2010, 10:30:49 am »

/sbin/ifconfig if you are not root.

Bigpaws
Logged

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 »
Logged