public WalletAppKit connectToLocalHost(){
  try {
    final InetAddress localHost=InetAddress.getLocalHost();
    return setPeerNodes(new PeerAddress(localHost,params.getPort()));
  }
 catch (  UnknownHostException e) {
    throw new RuntimeException(e);
  }
}

public WalletAppKit connectToLocalHost ( ) { try { final InetAddress localHost = InetAddress . getLocalHost ( ) ; return setPeerNodes ( new PeerAddress ( localHost , params . getPort ( ) ) ) ; } catch ( UnknownHostException e ) { throw new RuntimeException ( e ) ; } }
will only connect to localhost . cannot be called after startup .
