TCPServer not working

Hi,
I have tried to do a very simple client/server setup, like so:

port = 57624
server = TCPServer.new(“0.0.0.0”, port)
while (connection = server.accept)
# do stuff
end

Access from localhost works great, but "telnet the.ipa.ddr.ess 57624"
always gives me “Unable to connect to remote host: Connection
refused”. I am running the server part on Ruby 1.6.8, Win32
environment. And no, there’s no firewall blocking it. Any ideas?

···


Bye: Andi S. mailto:nullpointer@myrealbox.com

Hi,

···

At Tue, 17 Jun 2003 07:41:40 +0900, Andi Scharfstein wrote:

Access from localhost works great, but “telnet the.ipa.ddr.ess 57624”
always gives me “Unable to connect to remote host: Connection
refused”. I am running the server part on Ruby 1.6.8, Win32
environment. And no, there’s no firewall blocking it. Any ideas?

What time version are you using?

I had no trouble with 1.6.8 (2003-03-26) of mswin32 and
mingw32, on NT 5.0.


Nobu Nakada

“Andi Scharfstein” calvin8@t-online.de schrieb im Newsbeitrag
news:175127489812.20030617004253@myrealbox.com

Hi,
I have tried to do a very simple client/server setup, like so:

port = 57624
server = TCPServer.new(“0.0.0.0”, port)
while (connection = server.accept)
# do stuff
end

Access from localhost works great, but “telnet the.ipa.ddr.ess 57624”
always gives me “Unable to connect to remote host: Connection
refused”. I am running the server part on Ruby 1.6.8, Win32
environment. And no, there’s no firewall blocking it. Any ideas?

Firewall?

robert

Hi,

Access from localhost works great, but “telnet the.ipa.ddr.ess 57624”
always gives me “Unable to connect to remote host: Connection
refused”. I am running the server part on Ruby 1.6.8, Win32
environment. And no, there’s no firewall blocking it. Any ideas?

Firewall?

I apologize, it was indeed a firewall problem, albeit a non-obvious
one. Thanks for your answers :slight_smile:

···


Bye: Andi S. mailto:nullpointer@myrealbox.com