public java.net.Socket openSocket(int socketId) throws IOException {
        if (Signlink.mainapp != null) {
            return Signlink.opensocket(socketId);
        } else {
            return new java.net.Socket(InetAddress.getByName(getCodeBase().getHost()), socketId);
        }
    }