Try a given port.
The port to try
Optional
The address to bind the probe to, empty for the wildcard address
the port if successful, "-1" in case of EADDRINUSE, all other errors reject
EADDRINUSE
The error given if the code is not "EADDRINUSE"
Try a given port.