LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IP address (https://www.linuxquestions.org/questions/linux-newbie-8/ip-address-309650/)

Ab3n 04-04-2005 12:36 PM

IP address
 
Hey guys,
I was just wondering how I can find the ip address of my computer that others on the internet will see. I've tried various websites like ipchicken.com and what not, but they always seem to give me the ip of my router. Any help?

P.S. I am trying to set up a web server with apache, but I cant find the right ip address to direct my domain to.

masand 04-04-2005 12:43 PM

run

ifconfig

to get the ip adddress of ur various nwtwork interfaces


regards

Mega Man X 04-04-2005 12:43 PM

ifconfig?

Mega Man X 04-04-2005 12:44 PM

OOps, masand beats me for 17s :)

Ab3n 04-04-2005 12:45 PM

I am behind a router though, will my domain be able to find that ip across the internet?

masand 04-04-2005 12:52 PM

hi there

what kind of router is it?

i do not have much experience here

but i think if ur router can forwad the request for ur domain to ur machine then it can be done somewhat like NAT

regards

Ab3n 04-04-2005 12:55 PM

its a consumer grade netgear 802.11g router and it gives 193.168.0.x addresses to all my computers attatched to it.

masand 04-04-2005 01:10 PM

as i mentioined above u need to configure NAT on it
i do not know how this can be done on this kind of router

regards

michaelk 04-04-2005 01:43 PM

Read the manual on how to configure the router to foward port 80 to the IP address of your apache server. Your domain will point to the IP address of the router.

jeickal 04-04-2005 02:06 PM

Check out this post

neurotick 04-16-2005 10:52 PM

External IP Address
 
go here dude

http://www.edpsciences.org/htbin/ipaddress
that's your ip

Bruce Hill 08-05-2005 01:55 AM

Or an easier way, via command line
Code:

lynx -dump http://whatismyip.com | awk '/Your/ {print $4}'
I'm using a ssh tunnel and Socks 5 proxy, and those other methods, such as the post above this one, only give me the proxy server in another country. But this command gives my actual IP right here. ;)


All times are GMT -5. The time now is 05:35 PM.