- localAddr
- the local machine address and port to bind on.
- backlog
- the maximum number of unaccepted connections. Passing 0 or a negative value yields the default backlog of 50.
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. If the localAddr is set to null the socket will be bound to an available local address on any free port of the system.