/**
* Returns the local address to which this socket is bound. If this socket
- * is not connected, then <code>null</code> is returned.
+ * is not connected, then a wildcard address, for which
+ * @see isAnyLocalAddress() is <code>true</code>, is returned.
*
* @return The local address
*
public InetAddress getLocalAddress()
{
if (! isBound())
- return null;
+ return InetAddress.ANY_IF;
InetAddress addr = null;