Search code examples
javajava-server

Access a server from outside local network


I have a server written in Java which basically awaits requests from different clients and serves their requests. I am running this server from Eclipse. This server is accessible on the local network but I want to be able to access this service from outside the local network. Is there any way to do this please?

P.S. I am a real beginner in these things


Solution

  • you can open a port in the router that leads to the one that the server is listening on. You then connect to your public IP. This ip can be found on