I made a simple messenger for Java on sockets but it works on a local network. How to make it work over the Internet
Closed due to the fact that the essence of the question is not clear to the participants by cheops , m9_psy , Kromster , αλεχολυτ , Denis Bubnov 3 Apr '17 at 8:53 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
- Too wide question, it is impossible to answer it meaningfully. What exactly is the problem? What did you try to do and what did you fail? - m. vokhm
- @m. vokhm in LAN works by no, no, it’s still clear) there’s no dedicated ipshnik to my grandmother, don’t go) - FORTRAN
2 answers
You need an "External Dedicated Permanent IP Address".
Usually, the provider purchases 0.5–1 $ per month.
Or take, as advised above, a virtual server.
Or try services like no-ip.com
In order for your messenger to work through the Internet, it must be placed on some server hosted on the network, for example, by renting a virtual hosting service. The server will need to be raised with the address 0.0.0.0, which will allow you to connect to it via any network interface available on the hosting. Accordingly, the server address will need to enter in the client.
- It is not the answer to the question. To leave your comments or ask the author to clarify, leave a comment to the appropriate post. - From check queue - tCode
- @tCode corrected. - Alexander Martyntsev