Hi,
recently I became interested in the topic of Sockets in Java. I came across the official documentation:
docs.oracle.com/javase/tutorial/networking/sockets/index.html
I have two simple sockets here - the EchoServer server and the EchoClient client. The principle of their operation is trivial - the client sends some text to the server, and then the server sends back the same message (I personally modify this message delicately to make sure that the server actually processed it). Locally everything works fine, but I started to wonder how can I expose my socket to the local network or to the whole world at all? So that, for example, my friend from another part of country could send a message to the server and the server could reply to him? I searched the web for "How to deploy java server socket?" and so on, but I can't find anything about it. I would be grateful for any tips.