LinuxQuestions.org
Register a domain and help support LQ
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 12-23-2010, 11:03 AM   #1
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Rep: Reputation: 10
Trying to make local web page accessible from internet (IP question)


Hello,
topic is little bit complex, and there could be many things needed to be fixed, but I'd like to ask you simple question.

Network topology: Modem ----- Router ---- Computer (and other pcs)

On computer, I have apache server, configured at port 80, running. In local network, web page is accessible by my local IP (192...). Although, when I want to get to the page from the internet, I don't know right ip address, since router's one should be local, and also, router has it's own web page running at port 80.

So I guessed that my server IP would be modem's one, which I don't know. Sometime in past, I figured out address of modem too, but it has it's own application running. Also, router supports port forwarding (which I guess, is needed), but I don't know how to get using to it.

So, what address from internet should I have? How should I determine it?

(hope my question makes sense to you).

Thanks.
 
Old 12-23-2010, 11:55 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Let me see if I can help.

The internet address you are looking for will be somewhere in your router configuration. On mine, I can see it in a Status panel. I have a Linksys router model WRT160Nv2. To see your IP address, it helps to understand home routers. They have two sides. The one side your PC's are connected to. Most home routers run NAT, Network Address Translation. The IP addresses of your systems you can control in your router configuration.

The other side connects to your modem and then to your ISP. This is the address you need in order to do the connection you want. To find it you need to connect to your router through the HTTP connection. Consult your user guide that came with the router. This interface is usually password protected, assuming you set that up during installation. You did, didn't you?

Beyond that, you will need to set up port forwarding in the router, to the system with the Apache server you want exposed to the internet. That will be in the setup guide, somewhere. Some router have Help files on the configuration pages. Often that is enough.

Now the next problem has to do with your ISP. How do they assign your IP address? The one on the internet side. If it is DHCP ( many ISP's do just this ), then you are a moving target. In other works the IP address is changed from time to time. ie, if you restart the network ( router ) because of a power outage.

There are ways around this, but I'm no expert.

Next, you need to consult your ISP to find out if they will allow you to run a web server on your service. Many of them do not allow that, since it generates a lot of traffic, you may not be paying for. Better to find you before the blacklist you. Polices vary, so check first.

Last thought, see if your ISP subscription gives you a free web server service. Mine does, the amount of storage is limited, but its included, for $20 a month. My daughter uses it for her horse breeding service.

Hope this helps.
 
Old 12-23-2010, 12:06 PM   #3
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for your answer,
first I found that page is not accessible from local LAN either (I am working on it currently), so sorry for misinformation.

I am not planning to use my computer as web server, just want to try it, to get better understanding of networking, and things related to it.

I'll go check router setup right away and yes, password is set up. Although if I got you right, I didn't use strong password, since my LAN consists of few computers of my family members.

(I'll be back with results soon)...
 
Old 12-23-2010, 01:14 PM   #4
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
camorri is right,just one more thought.even if you have a dynamic ip address you still can access your web server from the outside using for expemple dyndns(Dynamic DNS) ,and of course port forwarding.you can use the router panel admin,or just use http://www.whatismyip.com/
 
Old 12-23-2010, 02:14 PM   #5
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Ok I tried IP Address listed in router's menu (as item "wan ip Address"), address on whatsmyip.com, and neither works. I feel little bit hopeless, not sure whats wrong. Should be IP of router, port forwarding is set up (from port 80 to my port 80), apache is running, and allowing all connections (just in case..). Any help? Thanks

Last edited by SkyerSK; 12-23-2010 at 03:01 PM.
 
Old 12-23-2010, 02:17 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,797
Blog Entries: 1

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
There is a possibility that your router has two internal addresses, because your Modem is a firewall as well.

In that case, you will have to get the external IP address from the modem, or by going to ipchicken.com and noting the external address.

From there, you will have to forward the correct ports, to get the traffic into the network. Also, you *SHOULD NOT* have your external router interface set up to be a GUI. That should be accessible only from internal.
 
Old 12-23-2010, 02:29 PM   #7
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Ok, thanks for your answers. IP from ipchicken didn't work either (btw it's a bit different than other ips I've seen here, so could you please specify me where that IP comes from?).

But, as I mentioned before, address marked as router's wan address didn't work. It does not work up till now, but at least, it has got to logs, so there should be some other problem. Picking up message from log:
Code:
Dec 23 2010 20:24:56 GMT+0100 (CET) ADPM ep 57984 ipa 133 ip 57984 UNo4
Not sure what it is, but it goes into log every time I try to access IP wrote above. Do you know what does the message mean? Thanks.
 
Old 12-23-2010, 02:55 PM   #8
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Alright, I got it. I am sorry about taking your time guys. After some time, I managed to use netcat to make some other tests. (...)

Then I finally got it - (little evil quiet) firewall I installed (configured) about 9-10 months ago, which was, of course, blocking all incoming connections. Thread solved. Thanks for your help again...

edit: (question about ipchicken remains)

Last edited by SkyerSK; 12-23-2010 at 03:01 PM.
 
Old 12-27-2010, 01:43 PM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,797
Blog Entries: 1

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by SkyerSK View Post
Alright, I got it. I am sorry about taking your time guys. After some time, I managed to use netcat to make some other tests. (...)

Then I finally got it - (little evil quiet) firewall I installed (configured) about 9-10 months ago, which was, of course, blocking all incoming connections. Thread solved. Thanks for your help again...

edit: (question about ipchicken remains)
Your Cable modem has an IP address assigned by your ISP. If you go to a site, that is the IP address that that website will see. This is called an "External" IP address. IPChicken just displays your External address, which is useful sometimes for troubleshooting. Especially in complicated setups, where you ask "What IP am I coming out of this datacenter as anyway?"
 
1 members found this post helpful.
  


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
Could not retrieve local web page, Squid vincent.dang Linux - Newbie 2 07-27-2010 07:01 PM
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 11:30 PM
Ubuntu Web Server Not Accessible From Internet lugos Linux - Server 1 08-23-2006 04:20 PM
How to make HTTPS dir accessible only from local network and one IP adress nevarlen Linux - Security 4 02-12-2005 12:09 AM
cannot view web page from local lan Tigger Linux - Networking 4 05-31-2003 02:03 AM


All times are GMT -5. The time now is 03:38 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