When I visit http://ip:port ,it's OK.

But when I telnet ip port,connection is refused.

How is this kind of effect achieved?

link|improve this question

0% accept rate
2  
Perhaps you browser is setup to use a proxy server and you are not making a direct connection. – Zoredache Aug 18 '11 at 2:42
How to emulate proxy with telnet? – telnet Aug 18 '11 at 2:49
feedback

closed as not a real question by ErikA, Zoredache, womble, John Gardeniers, mrdenny Aug 18 '11 at 2:50

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

When you do

http://ip:port

You are in fact sending messages as http and when you do

telnet ip port

you are in fact sending messages as TCP via port 23. Perhaps Port 23 of remote machine is blocked by some firewall.

link|improve this answer
1  
HTTP runs over TCP like telnet does, so implying one way connects by HTTP and the other way by TCP is not accurate. Using telnet with a port number does not connect to port 23, it connects to the port number you specify, so a firewall blocking port 23 is irrelevent. – TessellatingHeckler Aug 18 '11 at 3:01
Hmm, thanks for that clarification. I guess I got that wrong, :( – gokul varma nk Aug 18 '11 at 4:36
feedback

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