Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main;
- import java.io.IOException;
- import java.net.*;
- public class Server {
- public static void main(String[] args) throws IOException{
- int portNumber = 4444;
- ServerSocket serverSocket = new ServerSocket(portNumber);
- System.out.println("I am alive");
- while(true){
- new Thread(new Client(serverSocket.accept())).start();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement