From 1eb3fba7b9a07713a2069a2cc3a1a8db4e8236de Mon Sep 17 00:00:00 2001 From: Fedi6431 <102946457+Fedi6431@users.noreply.github.com> Date: Thu, 27 Jun 2024 11:54:48 +0200 Subject: [PATCH] Update Server.java --- src/Server.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Server.java b/src/Server.java index 1289633..8d2b315 100644 --- a/src/Server.java +++ b/src/Server.java @@ -15,8 +15,8 @@ public Server(String address, int port) { System.out.println("Made by Fedi6431"); server = new ServerSocket(); System.out.println("Server started"); - server.bind(new InetSocketAddress(localIpAddress, 5000)); - System.out.println("Running on port 5000, address: " + localIpAddress); + server.bind(new InetSocketAddress(localIpAddress, 65000)); + System.out.println("Running on port " + port + ", address: " + localIpAddress); @@ -89,7 +89,7 @@ public static void main(String args[]) { try { InetAddress localIpAddress = InetAddress.getLocalHost(); String address = localIpAddress.getHostAddress(); - Server server = new Server(address,5000); + Server server = new Server(address,65000); } catch (UnknownHostException e) { System.out.println("Error getting local host address: " + e.getMessage()); }