Gets and sets a value which indicates if a socket address can be reused.
Returns true if an address can be reused; otherwise returns false. The default value is true.
The ReuseAddress property determines if a socket can be bound to an address and port number that were recently used. If this property is true, then addresses can be reused as needed. If the property is false, then addresses cannot be reused and an error will be generated if the address was was recently used by another socket.
This property is typically used by server applications. By setting the property to true, a server can be stopped and immediately restarted using the same port number; otherwise, the server must wait approximately two minutes before the port can be reused.
If you wish to determine if a local port number is already in use by another application, set this property to false and attempt to create a socket using that port number. If another application is already using that port number, an error will be generated indicating that the address is in use and the socket could not be created.