Index: /applications/editors/josm/plugins/ywms/src/org/openstreetmap/josm/plugins/ywms/HTTPServer.java
===================================================================
--- /applications/editors/josm/plugins/ywms/src/org/openstreetmap/josm/plugins/ywms/HTTPServer.java	(revision 5178)
+++ /applications/editors/josm/plugins/ywms/src/org/openstreetmap/josm/plugins/ywms/HTTPServer.java	(revision 5179)
@@ -5,4 +5,5 @@
 import java.net.Socket;
 import java.net.SocketException;
+import java.net.InetAddress;
 
 /**
@@ -29,6 +30,9 @@
 		super("YWMS HTTP Server");
 		this.setDaemon(true);
-		// Start the server socket with only 1 connection, because we can only start one firefox process
-		this.server = new ServerSocket(port, 1);
+		// Start the server socket with only 1 connection, because we can 
+        // only start one firefox process. Also make sure we only listen
+        // on the local interface so nobody from the outside can connect!
+		this.server = new ServerSocket(port, 1, 
+            InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }));
 	}
 
