T
T
trofimovfedor2021-05-06 02:02:02
PHP
trofimovfedor, 2021-05-06 02:02:02

How to access the local server from the outside?

I got this problem here. There is a computer in the village with connected mobile internet and power. The task was by php to administer it. From the side of my server there was a form after sending which data was taken from it and placed in a file for 10 seconds that was checked by a computer. But here's the problem, this approach is not always convenient to use and CD and traffic. It would be more convenient if I could contact him via the Internet when I need it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
iddqda, 2021-05-06
@iddqda

ngrok

V
Viktor Taran, 2021-05-06
@shambler81

to contact you need to
1. figure out which daemon or service you are trying to connect to
2. what ports should be open for that deomn service.
3. Open them in the firewall on the PC itself
4. on your router, redirect external ports to this computer
there should be port forwarding or something similar
in the parameters there will be something like
Name
port external
port internal
IP of the computer inside your network to whom to give external port
something like this
RDP 3389 - 3389 192.168.0.2
Then your router will give this port to a computer inside your network.
And if you connect to your IP issued by the provider, then the router will redirect to the desired port of the desired machine in your network.
6093c16823023094617368.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question