Hello
I connected the ESP module to the router and I command the module using the mobile app.Now I want to command the module remotely via the internet, but the module's IP is only available locally.
What should I do?
You can expose a local device to the internet by setting up port forwarding on your home router, but this creates a security risk as it can make the device vulnerable to external attacks if not properly secured ➜ if you don't know what to do, you should probably do nothing as poking a hole into the security of your router opens your home network to hackers and bots' attacks....
which ESP, which router, which mobile app... Do yourself a favour and please read How to get the best out of this forum and post accordingly. More information is always better.
You should check out Arduino Cloud or maybe Ubidots.
Thank you.
Are all hosting and server-based solutions paid? Or are there free ones?
If I want to do port forwarding, what should I do to make it secure and not at risk?
The ESP 32 module is a camera, the mobile app is made by me, The modem router is TP-Link.
Begin by understanding networking basics like TCP/IP, addressing, and related concepts. Prefer using a VPN over direct port forwarding whenever possible for added security.
If you choose port forwarding, configure your system with non-standard ports, restrict access to trusted IPs, and set up a firewall to monitor traffic. Use strong authentication, such as unique passwords or SSH keys, and secure protocols like HTTPS or SSH to encrypt data. Close unused ports, monitor logs for suspicious activity, and regularly update your router and device software. Finally, use NAT rules to expose only the necessary ports.
Many let you create a free account but with limited resources, bandwidth, availability etc., intended for hobbists and learning purposes.
Thanks to all friends, I'm eager to talk to you more
Well, my education is in software, I have a theory about information networks, but in practice, what should be done here for security? Please explain more.
I have used non-standard ports in the mobile application and in the hardware code to establish communication.
You mentioned using "nat" to hide the ports I use.
Please explain how to do this.
Also, how does using a VPN increase security?
And can VPN be excluded from normal home internet use? Because it causes speed drops and lack of access to some data centers
Really there are dozens of tutorials over the internet. There is no need to explain that again. Just Pick one and go with it.
(Or install a VPN in your home network)
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.