Advertisement
Cnvmendoza

server.java

Sep 3rd, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. import java.io.*;
  2. import java.net.*;
  3. public class server {
  4.     public static void main(String[] args) throws IOException{
  5.         ServerSocket ss = new ServerSocket(4999);
  6.         Socket s = ss.accept();
  7.  
  8.         System.out.println("client connected");
  9.     }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement