LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How Do Find my IP Address? (https://www.linuxquestions.org/questions/red-hat-31/how-do-find-my-ip-address-604762/)

ssjalakazam 12-05-2007 03:17 PM

How Do Find my IP Address?
 
Hello,

I'm trying to get remote mySQL access to work on a redhat linux server I'm working on, but I have virtually no experience using linux.

What I'm currently trying to do is determine the IP address of the server. The only method I've found thus far has been the ifconfig command, which only displays my router's address. How do I get the IP address of the server itself?

nightshade_1977 12-05-2007 03:21 PM

Quote:

ifconfig
from a console on the server should return the ip address of the server

you could also try
Quote:

ifconfig -a
if there is more than one NIC in you system this will return information on all of them

b0uncer 12-05-2007 03:31 PM

Internet address is easiest found out by visiting a site such as whatismyip.com - if there is no internet connection on the server, or you wish to get an internal ip or something, then you're going to have to rely on tools like ifconfig or network route tools.

WhatsHisName 12-05-2007 04:34 PM

Sounds like you need a DynamicDNS service like those provided by no-ip.com or dyndns.com.

When using a DynamicDNS service, a client installed on the server identifies the public ip address much as b0uncer described and reports it to the DynamicDNS provider. The ip address is then associated with a unique name of your choice like myjob.is-very-bad.org and made available through their dns servers as a fully-qualified domain name (FQDN).

To connect to your server, you would supply its FQDN as myjob.is-very-bad.org and the magic of the internet will do the rest.


The simple DynamicDNS no-ip.com and dyndns.com services are free, but there are some nice low-cost options that you may want in the future. I use dyndns.com and have about 15 systems being tracked this way.


All times are GMT -5. The time now is 09:34 PM.