public synchronized int getLocalPort() {
public int getLocalPort() {
  public synchronized int getLocalPort() {    getLocalPortInternal();  // someone has asked, so we'd better find out.    return localport;  }