- localAddr
- the local address and port to bind on.
Type Reason Java.Lang.IllegalArgumentException if the SocketAddress is not supported. Java.IO.IOException if the socket is already bound or a problem occurs during binding.
Binds this server socket to the given local socket address with a maximum backlog of 50 unaccepted connections. If the localAddr is set to null the socket will be bound to an available local address on any free port of the system.