how do I know if a certain tcp/ip port is available ?
this doesn't work:
with wsocket1 do
showmessage('port not available');
this only works when another app is LISTENNING in that port..
I tried the following:
I run a chat program that conects to another one in LOCALHOST,
both in my computer, ok I go to netstat and I see there are these
localhost:20000 --> localhost:30000
localhost:30000 --> localhost:20000
ok, once they are connected and not listenning.. just connected, I try the code above and I get these results:
if I try with port 20000 I get an error about winsock binding or something,
if I try with 30000 .. I get no error !!! like if the port was free while it's not...