Socket socket = new Socket(addr, addrPort.getPort());
new Socket(addr, addrPort.getPort());
    private void checkRunning(InetAddrPort addrPort) throws Exception {        InetAddress addr = addrPort.getInetAddress();        if (addr == null) {            addr = InetAddress.getLocalHost();        }        try {            Socket socket = new Socket(addr, addrPort.getPort());        } catch (IOException x) {            // we couldn't connect to the socket because no server            // is running on it yet. Everything's ok.            return;        }        // if we got so far, another server is already running on this port and db        throw new Exception("Error: Server already running on this port: " + addrPort);    }