Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.net.*;
- import java.io.IOException;
- import java.net.DatagramSocket;
- import java.net.InetAddress;
- import java.net.SocketTimeoutException;
- public class Server{
- public static void main(String args[]) throws IOException{
- String inputClient;
- int porta = 8888;
- ServerSocket portaSocket = new ServerSocket(porta);
- System.out.println("Ouvindo" + porta);
- while(true){
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement