Statically listen on port 10000

This commit is contained in:
edr
2020-04-15 20:25:35 +02:00
parent cb067be24c
commit d124158ad3

View File

@@ -114,7 +114,7 @@ public class MonitorActivity extends Activity
try
{
// Initialize a server socket on the next available port.
serverSocket = new ServerSocket(0);
serverSocket = new ServerSocket(10000);
// Store the chosen port.
final int localPort = serverSocket.getLocalPort();