Skip to content

Commit

Permalink
Update Server.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedi6431 authored Jun 27, 2024
1 parent 559bd9a commit 1eb3fba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);



Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit 1eb3fba

Please sign in to comment.