Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu server I am trying to the port 8550 to be accessible on the server public IP address, I can hit the web service running on that port from the server itself but not from the public IP address.

running this netstat -anltp | grep "8550"

the output is tcp 0 0 127.0.0.1:8550 0.0.0.0:* LISTEN 23961/python

Does this look right or the IP address should be 0.0.0.0:8550 if so how can I achieve that

What should I add to the iptables (I guess) in order to enable this port publicly

Thanks

share|improve this question
    
Is the server connected to a router where the port is being blocked? –  John Dec 18 '13 at 18:03
    
Thanks John, resolved already I did a silly mistake answer is below –  bhappy Dec 18 '13 at 18:04
add comment

1 Answer

I figured it out

My mistake that my python service was listening to port 8550 on localhost.

To solve this issue I changed localhost to 0.0.0.0 and that resolves the issue

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.