s.checkConnect(localAddr.getHostName(), -1);
s.checkConnect(localAddr.getHostAddress(), -1);
  public InetAddress getLocalAddress()  {    if (! isBound())			return null;    InetAddress localAddr;    try      {	localAddr =	  (InetAddress) getImpl().getOption(SocketOptions.SO_BINDADDR);	SecurityManager s = System.getSecurityManager();	if (s != null)	  s.checkConnect(localAddr.getHostName(), -1);      }    catch (SecurityException e)      {	localAddr = InetAddress.ANY_IF;      }    catch (SocketException e)      {	// This cannot happen as we are bound.	return null;      }    return localAddr;	}