How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Claws224 Your Own Question

Claws224, IEEE Network Engineer
Category: Networking
Satisfied Customers: 1256
Experience:  IEEE, Microsoft
Type Your Networking Question Here...
Claws224 is online now
A new question is answered every 9 seconds

I need to open port 8080 on my linux server running Centos

Customer Question

I need to open port 8080 on my linux server running Centos 6. I have run
iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -j ACCEPT
service iptables save
service iptables restart but it is still refusing connections
Submitted: 1 month ago.
Category: Networking
Expert:  Bruce Wilner replied 1 month ago.

Do you have inetd configured to actually listen on that port? Did you add a specification to inetd.conf that indicates which service to execute when a call is inbound on that port?

Customer: replied 1 month ago.
Hi Bruce, no I didn't do that.
I can do it if you provide me with the commands/instructions to do so.
Expert:  Bruce Wilner replied 1 month ago.

Unfortunately, I have no idea what service you intend to run on 8080. I will take a wild guess that it's a Web service. Do you already have a Web service accepting requests on port 80? If so, you could just replicate the commands. Let me know the answer and I can give you PRECISE commands to type.

Expert:  Bruce Wilner replied 1 month ago.

Also, make sure your firewall isn't blocking port 8080--which would be an independent problem--or we'll be here all year. You can't learn Linux administration by guesses, fits, and starts.

Customer: replied 1 month ago.
The server is running wowza streaming engine.
We have an almost identical server running wowza and port 8080 is open on it. (checked via nmap)
The script that we are trying to run is a cgi script.
and we are getting the following error
"Message: file_get_contents( failed to open stream: Connection refused"
Customer: replied 1 month ago.
If we run the same request on the other wowza server it works
You can check by clicking the following link
Expert:  Bruce Wilner replied 1 month ago.

Clearly, the connection is being accepted inbound, otherwise there would be no engine that received the request and resultantly tried to execute the CGI command.

The problem lies with the CGI command--or with some other peer weith which it is attempting to communicate.

Customer: replied 1 month ago.
But it is saying that the "connection is refused" and port 8080 is not open (verified by nmap)
Expert:  Bruce Wilner replied 1 month ago.

You just told me a moment ago that port 8080 is open.

Customer: replied 1 month ago.
Sorry, I was speaking about it being open on the second wowza server that is almost identical to this one.
FYI: The request to execute the command is coming from our CMS that is on a 3rd server.
Customer: replied 1 month ago.
We have 2 wowza servers
Port 8080 is open on one , but not the other

Related Networking Questions