I am learning java and trying to do a client-server type chat using TCP, which will work online, the fact is that what I have done so far works very well locally, but when putting a remote ip address the client It connects very well to the server because it is what port has to be open, but when the server has to send something to the clients how do I use ports that are open for remote connections? Because for example in my router only I have open the port that my server uses to listen to, or how could I open the ports of the clients?