
import interfaces.*;

import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;

/**
 * Chat Server for various clients
 */
public class MultiUserChatServer implements IChatServer {
    private List<IChatClient> clients = new ArrayList<>();
    private ServerSocket ss;

    public void setupServer() {
        try {
            ss = new ServerSocket(8200);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public void waitForClients() {
        try {
            while (true) {
                Socket socketNovoCliente = ss.accept();
                ConnectedClient novoCliente = new ConnectedClient(socketNovoCliente, this);
                clients.add(novoCliente);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public List<IChatClient> getClients() {
        return clients;
    }
}

@@ -312,16 +312,53 @@
 et ss;%0A%0A
+    private static int PORT = 8200;%0A%0A
     publ
@@ -429,20 +429,20 @@
 rSocket(
-8200
+PORT
 );%0A     

Set server port in a static prop