LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2005, 01:36 PM   #1
Ab3n
Member
 
Registered: Sep 2004
Location: Colorado, USA
Distribution: CentOS 5
Posts: 144

Rep: Reputation: 15
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.
 
Old 04-04-2005, 01:43 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
run

ifconfig

to get the ip adddress of ur various nwtwork interfaces


regards
 
Old 04-04-2005, 01:43 PM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
ifconfig?
 
Old 04-04-2005, 01:44 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
OOps, masand beats me for 17s
 
Old 04-04-2005, 01:45 PM   #5
Ab3n
Member
 
Registered: Sep 2004
Location: Colorado, USA
Distribution: CentOS 5
Posts: 144

Original Poster
Rep: Reputation: 15
I am behind a router though, will my domain be able to find that ip across the internet?
 
Old 04-04-2005, 01:52 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 04-04-2005, 01:55 PM   #7
Ab3n
Member
 
Registered: Sep 2004
Location: Colorado, USA
Distribution: CentOS 5
Posts: 144

Original Poster
Rep: Reputation: 15
its a consumer grade netgear 802.11g router and it gives 193.168.0.x addresses to all my computers attatched to it.
 
Old 04-04-2005, 02:10 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 04-04-2005, 02:43 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,929

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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.
 
Old 04-04-2005, 03:06 PM   #10
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
Check out this post
 
Old 04-16-2005, 11:52 PM   #11
neurotick
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
External IP Address

go here dude

http://www.edpsciences.org/htbin/ipaddress
that's your ip
 
Old 08-05-2005, 02:55 AM   #12
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
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. ;)

Last edited by Bruce Hill; 08-05-2005 at 02:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 10:33 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 11:33 AM
problem to print source address and destination address jooboo Programming 2 11-26-2003 04:24 PM
Should i use the eth0 ip address of my internet ip address when applying iptables ForumKid Linux - Security 2 01-03-2002 09:54 AM


All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration