From 0cd6cee6882e8a6928fb59607dd552e697768dfe Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Fri, 27 Apr 2012 18:23:31 +0000 Subject: [PATCH] Fixed an issue with -listen mode where java client wasn't listening on the wildcard address git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4908 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/network/TcpListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/java/com/tigervnc/network/TcpListener.java b/java/com/tigervnc/network/TcpListener.java index afe80753..d6e92ab9 100644 --- a/java/com/tigervnc/network/TcpListener.java +++ b/java/com/tigervnc/network/TcpListener.java @@ -59,9 +59,7 @@ public class TcpListener extends SocketListener { } else if (listenaddr != null) { addr = java.net.InetAddress.getByName(listenaddr); } else { - // FIXME: need to be sure we get the wildcard address? - addr = InetAddress.getByName(null); - //addr = InetAddress.getLocalHost(); + addr = InetAddress.getByName("0.0.0.0"); } } catch (UnknownHostException e) { System.out.println(e.toString()); -- 2.39.5