Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My websocket server is running on port 9000 on an ec2 instance.
It's working perfectly when accessed through a browser.
But I am unable to do telnet to it.
I did telnet ec2.x.y.z.com 9000 and the response is :
telnet: connect to address 54.251.xx.yyz: Connection timed out

share|improve this question
    
What's the output of netstat -an|grep -w 9000 on the server? –  MadHatter Jan 10 '13 at 8:09
    
Are you trying from the same machine in both cases? Do you have some proxy server configured in your browser? –  Khaled Jan 10 '13 at 8:13
    
@Khaled. No, I am trying from different machines. No proxy server configured in the browser. –  dharm0us Jan 10 '13 at 8:37
1  
@dta: It seems that you have a firewall that is preventing you from accessing the server. –  Khaled Jan 10 '13 at 8:49
1  
dta, if you're saying that from a given host when you visit the site on port 9000 by browser, or contact the machine on port 9000 by telnet, you get the same result, then your question is fundamentally flawed. I agree with Khaled, that at the moment it looks much more likely that the machine that can't connect via telnet (or, presumably, by browser) is firewalled off in some way. –  MadHatter Jan 10 '13 at 8:49

1 Answer 1

up vote 0 down vote accepted

From the posted comments, it seems to me that you have a firewall that is preventing you from accessing the server. If so, you should not able to be access the server using the browser not only using telnet.

share|improve this answer

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.