Home Download Ubuntu

How to see what's my ip adress on Ubuntu machine

Sometimes you might need to see what's your Ubuntu machine IP adress, to be able to connect from the internet or form your local network.

1. If you want to find out what your ip adress which is connect to the internet:

type the following adress in your browser: http://www.ipchicken.com

or type this in your terminal

wget -qO - http://www.ipchicken.com/ | egrep -m1 -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'


or

ifconfig -a


which should list all your network cards and their ip adresses. Usually is eth0 if you have a single network card.
Notice: If you have connected to the internet using pppoeconf (broadband internet connection), the ip adress will be listed at ppp0.

2. If you want to find out what your ip adress which is connect to the internet:

ifconfig -a


which should list all your network cards and their ip adresses. If you can't see an Ip adress, then you should setup your network card.

0 comments:

Post a Comment