-
-
Save ashish173/6892106 to your computer and use it in GitHub Desktop.
Network programming in java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { // starts a server socket on port 4444 | |
serverSocket = new ServerSocket(4444); // socket listens on 4444 | |
} | |
catch(IOException e) { | |
System.err.println("Could not listen on port : 4444"); | |
System.exit(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment