On Sun, Mar 18, 2007 at 10:40:06AM +0900, email@example.com wrote:
while(session = serv.accept)
command = session.gets
I don’t have a Windows 2000 machine, but I think in any case you’ll need
provide more details for anyone to be able to help you. What do you mean
“it doesn’t work”? It could mean:
the program raises an exception (if so, post the exact error message)
a client gets ‘connection refused’ when it tries to connect to port
(if so, this means the server isn’t listening on port 9990)
the client can connect, but when it sends a string, nothing is
on the server
the server doesn’t get as far as printing “Server running…”
probably a bunch of other failure modes that I haven’t thought of.
One easy thing you can try is to use ‘127.0.0.1’ instead of ‘localhost’.
Perhaps Windows 2000 doesn’t define the name “localhost” for you.
But without seeing a description of the error, it’s very hard to help
More advice here: