Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-12-2003, 01:01 PM   #1
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
Trying to access my webserver from a different computer.

Hi, I'm just starting to learn about setting up apache. I'm running a standard Fedora Core 1 install. I have httpd running and can connect to my webserver by directing my browser to http://localhost. Fine.

I have a dynamic IP, so I determine my current IP using ifconfig. Once I do, I can also connect to my webserver by directing my browser to this IP address, i.e. http://nn.nn.nnn.nnn. Fine.

After trying this this morning, I logged out (back to the gdm login screen) and went to work to try and access my webserver from my machine at work. When I tried to point my browser at my IP address, i.e. http://nn.nn.nnn.nnn, I could not connect to my webserver. I got that Internet Explorer "that page can not be found" generic error message.

What should I check on my server machine to see why I couldn't connect?

Old 12-12-2003, 01:10 PM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well as you say, you have a dynamic ip, so your internal, or even external address (if you have a dynamic address from your ISP) could have changed...i suggest, just getting the site up and running, and then look into and get a DNS name to forward to your IP...there is even a tool on no-ip that will update your ip as it changes...just install it on the webserver box, and its beyond easy to setup...things like your username/password registered with no-ip and update interval, etc..
Old 12-12-2003, 02:06 PM   #3
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
If that's not the answer then your firewall is probably blocking port 80.

From your localhost you can access your webserver no matter what the firewall does. Even if you enter the IP number instead of 'localhost.' But when you access it from another computer the firewall keeps you out.

If you're using Shorewall just go into mandrake control center, security, firewall, and check the webserver box to let the internet connect to your webserver.
Old 12-12-2003, 02:16 PM   #4
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
Thanks for the good advice. I have looked into no-ip and other similar services. I probably will do this down the road. At this point, however, I'm just experimenting.

I agree it's possible that my IP changed in the half hour it took me to get to work, but I don't think so. I usually have the same IP for a few days. Assuming that my IP is still the same, what should I look at on my server? Something in the httpd.config? Firewall? Anything else?

mac_phil, you posted while I was composing. I'm not using Mandrake, but I'll try and find out how Fedora does this. (Anyone?)

Last edited by cpv204; 12-12-2003 at 02:20 PM.
Old 12-12-2003, 11:13 PM   #5
LQ Newbie
Registered: Dec 2003
Posts: 14

Rep: Reputation: 0
are you using a router at home? if so <i'll go ahead and post my reply> , your router must know that if it receives any web (port 80) requests, it must direct the request to your pc. in my case, i did this by accessing the router settings - I went to the Virtual Servers option, inserted a row with my pc's internal IP address (192,168.2.27), and defined External Port = "80" and Internal Port = "80." make sure you Reset your router.
Old 12-13-2003, 03:28 AM   #6
Registered: Dec 2003
Location: Walls
Distribution: Slackware 10.1;CentOS 4
Posts: 51

Rep: Reputation: 15
As DrOzz said, a service like no-ip or would be great, you just need a domain name. Not to mention the updating client that monitors your WAN ip and updates it as needed.

If you have a home lan, you may consider assigning each computer to a static IP if they are not already. Should you need a dynamic lan, enable DHCP and start assigning IPs at for normal computers, then set your server to use and you'll never have a conflict and can specify which IP to forward port 80 to.

It may be possible that your ISP has blocked incoming port 80 (common in home class connections). You can try a port scan at to determine that. If so you may try and run your webserver on port 80.
Old 12-13-2003, 12:05 PM   #7
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
Thanks everyone. Port 80 was indeed closed (by me) and I found where to open it (System Settings->Security Level for you Fedora users). Hope this may help someone in the future.


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
Can access local LAN Webserver, but not Internet spaceuser Debian 11 08-23-2005 12:54 AM
how to make my computer avilable on internet as webserver peevee Linux - Networking 2 10-24-2004 12:32 PM
IPtables - cannot access internal webserver tantric Linux - Security 3 03-17-2004 02:20 AM
How to set up my computer as a webserver bcarl314 Linux - Newbie 4 11-02-2003 09:05 AM
No access to my webserver from the internet??? flipside Linux - Newbie 2 09-27-2003 11:13 AM > Forums > Linux Forums > Linux - Newbie

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

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