LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-25-2007, 10:42 AM   #1
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Rep: Reputation: 30
public IP address and boxes behind router?


Hello

I'd like to know how I could get access to my box if I had it behind router. Let's say ISP gives me public IP but this would be address of router?. If I had website on box behind router how could I reach it?.
How would I have to configure router and how computers behind router?.
I mean IP addresess.

Cheers
 
Old 01-25-2007, 10:48 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
I assume you mean a NAT router, like most home routers. You'd need to forward a port on the router to the computer providing the services in order to make use of them.
 
Old 01-25-2007, 11:06 AM   #3
alienux
Member
 
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
If you're setting up a standard website, forward port 80 to the internal IP address of the machine behind the router. This will allow you to access the website by using the public NAT address of the router (you can get that address by visiting www.whatismyip.com from a machine behind the router).

If you want to access it by URL, assuming you have a single dynamic IP address from your ISP, you'll need to use a service like www.dyndns.com or something similar. If you have a static public IP address, you can just register a domain name and make sure the public A record points to your public IP address.
 
Old 01-25-2007, 12:01 PM   #4
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Original Poster
Rep: Reputation: 30
Quote:
If you're setting up a standard website, forward port 80 to the internal IP address of the machine behind the router.
How can I do it?. Do I configure it in router setup or on the machine with website?.
 
Old 01-25-2007, 12:15 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by mac1234mac
How can I do it?. Do I configure it in router setup or on the machine with website?.
On the router.
 
Old 01-25-2007, 01:27 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
http://www.portforward.com
 
  


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
public ip address from behind nat mrtwice Linux - Networking 4 09-13-2012 10:24 AM
How to fix IP address for 2 Linux boxes at the router level RT31P2 rajeshsfo Linux - Hardware 1 08-08-2006 10:36 PM
how to get public ip address openbysource Linux - Networking 1 02-23-2006 12:21 AM
Cannot connect to router from boxes bluesman2333 Linux - Networking 7 06-03-2005 10:57 PM
freeswan and public address c0c0deuz Linux - Networking 0 08-13-2003 11:42 PM


All times are GMT -5. The time now is 01:31 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration