# HG changeset patch # User one # Date 1318580180 -32400 # Node ID 19aff5293769a672870290d7a2da67b766d7bae8 # Parent 3c4bebe9bf151774b7609b2e4b8a192b752e1b12 large update befor diff -r 3c4bebe9bf15 -r 19aff5293769 src/myVncClient/EchoClient.java --- a/src/myVncClient/EchoClient.java Wed Oct 05 02:37:50 2011 +0900 +++ b/src/myVncClient/EchoClient.java Fri Oct 14 17:16:20 2011 +0900 @@ -17,6 +17,7 @@ // MyVncClient client; private InterfaceForViewer client; private int echoPort = 9999; + IpV6 ipV6; MyVncClient checkMove; VncViewer vncV; String responseLine; @@ -108,10 +109,11 @@ // サーバーにメッセージを送る if (echoSocket != null && os != null && is != null) { try { - + InetAddress addr = InetAddress.getLocalHost(); String add = new String(addr.getHostAddress()); - + //add = getIpV6(); + os.writeBytes(add + "\n"); os.writeBytes(args + "\n"); getProxyData(is); @@ -268,4 +270,10 @@ System.err.println("IOException: " + e); } } + + String getIpV6() { + ipV6 = new IpV6(); + ipV6.getInterface(); + return ipV6.getV6(); + } } \ No newline at end of file