From: Brian Hinz Date: Fri, 27 Apr 2012 18:23:31 +0000 (+0000) Subject: Fixed an issue with -listen mode where java client wasn't listening on the wildcard... X-Git-Tag: v1.2.90~177 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0cd6cee6882e8a6928fb59607dd552e697768dfe;p=tigervnc.git 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 --- 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());