code: protected final InetSocketAddress localAddress() {
          if (localAddress == null) {
              if (server) {
                  localAddress = new InetSocketAddress(NetUtil.LOCALHOST,
                                                       guessServerPort(sessionProtocol, authority));
              } else {
                  localAddress = new InetSocketAddress(NetUtil.LOCALHOST, randomClientPort());
              }
          }
          return localAddress;
      }
docs: Returns the local socket address of the connection.