How to close a port

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
leolaw
Posts: 2
Joined: Mon Nov 26, 2007 9:00 am

How to close a port

Post by leolaw » Sun Dec 02, 2007 1:58 am

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Sun Dec 02, 2007 12:37 pm

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")
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply