It does m8,on the new version
$portfree(N,[ipaddress])
Returns $true if the specified port number is not in use, where N = port number, otherwise returns $false.
When i restart the listen port i don't have the tcp active connection anymore!
I test this after some seconds