Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package server;
- import java.io.IOException;
- import java.net.ServerSocket;
- import java.net.Socket;
- public class Server {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- try{
- ServerSocket serverSocket = new ServerSocket(9999);
- Socket socket = serverSocket.accept();
- System.out.println("Clientn Connected :");
- }catch(IOException e)
- {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement