LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-01-2012, 12:54 PM   #1
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Rep: Reputation: Disabled
Web Server Not Accessible by public IP


I have forwarded ports 8080 in the router.

I have checked using website yougetsignal.com to see if the port is open, and it is open.

I have installed httpd package and have the following configuration file httpd.conf

Code:
<VirtualHost *:8080>
    ServerAdmin root@desktop.example.com
    DocumentRoot /var/www/html/
    ServerName desktop.example.com
    DirectoryIndex index.html
</VirtualHost>
But when I access the web page using public ip say http://122.162.33.33:8080/index.html, it displays "problem loading page"

Also, the command
Code:
#curl http://122.162.33.33:8080
gives couldn't connect to host.

"Also, I have disabled firewall"
 
Old 09-01-2012, 01:43 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Can you access it as 127.0.0.1:8080 from the machine running the server?
Usually this is a router configuration problem.
 
Old 09-01-2012, 06:15 PM   #3
Buto
Member
 
Registered: Sep 2004
Location: So Cal
Distribution: Slackware 12
Posts: 60

Rep: Reputation: 16
ISP possibly

If I remember correctly sometime's ISPs will block certain ports. Especially if you just have a residential connection. Try using something other than 8080 and something really random, like 1811.
 
Old 09-01-2012, 06:23 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,473

Rep: Reputation: Disabled
It may not be (and usually isn't) possible to access the server from the inside using the public IP. A setup like that is called "hairpin NAT", and requires that the router specifically supports it. Most don't.

It should still be possible to reach the server from the outside using the public IP, and from the inside using the internal IP.
 
Old 09-02-2012, 02:14 AM   #5
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
It may not be (and usually isn't) possible to access the server from the inside using the public IP. A setup like that is called "hairpin NAT", and requires that the router specifically supports it. Most don't.

It should still be possible to reach the server from the outside using the public IP, and from the inside using the internal IP.
Yes, you are right. I accessed my public IP using another network modem and it worked for 80 port as well as some random port.
 
Old 09-02-2012, 02:23 AM   #6
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by Ser Olmy View Post
It may not be (and usually isn't) possible to access the server from the inside using the public IP. A setup like that is called "hairpin NAT", and requires that the router specifically supports it. Most don't.

It should still be possible to reach the server from the outside using the public IP, and from the inside using the internal IP.
That's odd. It worked for me.
 
  


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
VPN Server: need help setting up a public server accessible by win xp clients hamish Linux - Networking 6 09-20-2006 03:39 AM
Ubuntu Web Server Not Accessible From Internet lugos Linux - Server 1 08-23-2006 04:20 PM
web server not accessible externally GoBillsBN Linux - Networking 1 04-30-2006 12:55 AM
Web Server not accessible (TPM) Croaker Linux - Software 1 01-14-2005 10:06 PM
Web server not accessible from other PCs jenna_h Linux - Networking 10 12-18-2003 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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