public static void main(String[] args) throws IOException {
        //make a TCP server socket
        final ServerSocket TCP_Socket = new ServerSocket(7007);
        //make UDP server socket
        final DatagramSocket UDP_Socket = new DatagramSocket(7007);
        //thread to handle TCP specific connections
        Thread tcpListenThread = new Thread(new Runnable() {
            @Override
            public void run() {

                while (listening) {
                    // creates a new TcpSendThread when a new tcp connection is received
                    try {
                        new TcpSendThread(TCP_Socket.accept()).start();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }

                }
            }
        });
        //thread to handle UDP specific requests
        Thread udpListenThread = new Thread(new Runnable() {
            @Override
            public void run() {

                new UdpSendThread(UDP_Socket).start();

            }
        });
        //start the 2 listening threads for UDP + TCP
        tcpListenThread.start();
        udpListenThread.start();
    }