Page 1 of 1

How to close a port

Posted: Sun Dec 02, 2007 1:58 am
by leolaw
Hi,

I am playing with the Internet chatting sample for a project.
After I click "Stop Server" on the Server script, the client users can still connect to the server for some reasons. I assume that this is because the Stop Server script only close the "socket" between the client and the server, but not the actual port that opened when I have first started the server.
So how can I "close" the port?

P.S. the port number that is opened is set to 1987

Posted: Sun Dec 02, 2007 12:37 pm
by BvG
CHeck "the opensockets", it should give you an entry with just your port number, use that in your "close socket" command (eg: close socket "1987")