Question Locked

Need help opening up Linux

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm pulling my hair out here guys.

I have a Linux box (Red Hat 9) that I am installing a web app on. I have the app installed and when I open the browser on the local machine and input

http://localhost:8080/index.php

It launches fine and life is good. When I type the actual IP of the machine I get a message that the connection was refused. I'm guessing I have a problem with some blocked ports. I went into the GUI firewall and turned it off. That didn't help. I set an entry in my iptables for my PC to allow connections from my PC on port 8080. Didn't help. Am I missing something?

4 replies

by Former member

Life above the well known service port range

The Internet was largely born on UNIX-based systems and servers. UNIX enforces the notion of the first 1023 "privileged ports" which can only be opened by services running with so-called "root", or administrative, privileges. Historically, this meant that only authorized system administrators were able to establish and operate a web server on port 80 since this was within the first 1023-port privileged region. Therefore, when non-administrators wished to run their own web servers on machines which might already have a server running on port 80, or when they were not authorized to run services below port 1024, port 8080 was often chosen as a convenient place to host a secondary or alternate web server.

As you will see in greater detail in the discussion of URL defaults and port overrides on the port 81 page, a specially formed URL of the form "http://www.domain.com:8080/" is used to specify a port other than the protocol's default.

For further information regarding accessing port 8080, see the discussion on the port 81 page regarding URL defaults and overriding the default ports used by Internet protocols.
Basically try "http://www.domain.com:8080/", instead of typing in the "ip address".
Hope this helps you.
http://www.grc.com/port_8080.htm

Please post back if you have any more problems or questions.

by jiminpa

This is an intranet site not an internet site. I did try typing the DNS name instead of the IP but that did not help either. I really believe my problem lies more with tcp ports not being open for connection rather than the URL of my site. I have wasted almost 2 days on this. And people wonder why I drink so much ;)

This discussion is closed to new replies.