Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- import java.net.ServerSocket;
- import java.net.Socket;
- public class Server {
- public static void main(String[] args) {
- try {
- System.out.println("Cekame klienti");
- ServerSocket serverSocket = new ServerSocket(4567);
- Socket socket = serverSocket.accept();
- System.out.println("konekcijata e uspesna");
- }
- catch (IOException io) {
- io.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement