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 26, 2024
1 parent a970752 commit 02c7589
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public Server(int port) {
}

public static void main(String args[]) {
Server server = new Server(5000);
InetAddress localIpAddress = InetAddress.getLocalHost();
server = new ServerSocket(5000, localIpAddress);
}
}
}

0 comments on commit 02c7589

Please sign in to comment.