InetAddress addr = getInetAddress();  if (addr != null) return new InetSocketAddress (getInetAddress(), getLocalPort());  return null;
if (!isBound()) return null;  return new InetSocketAddress(getInetAddress(), getLocalPort());
  public SocketAddress getLocalSocketAddress()  {    InetAddress addr = getInetAddress();    if (addr != null)      return new InetSocketAddress (getInetAddress(), getLocalPort());    return null;  }