Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Hwale

69 posts

Master Geek


#306039 23-Jun-2023 01:58
Send private message

I have an esp8266 on the home network and I'd like to control it from outside the network by sending args to its url (https://myIPaddress:80/arguments?a=1&b=2) for example. 

 

This requires port forwarding which seems unsecure and also a static IP address which I could get but would rather not have to pay for.

 

Is there a simple, secure way to talk to an esp on a home network from outside the network? Easiest thing I can think of is get it to poll a thingspeak value or just use blynk or similar but I'd rather do it without the 3rd party service in the middle. Any advice? 

 

 

 

 

 

 


Create new topic
nzkc
1572 posts

Uber Geek


  #3093747 23-Jun-2023 07:26
Send private message

Options:

 

     

  1. Put a Cloudflare tunnel in front of it.
  2. VPN: Cloudflare zero trust, Pivpn or tailscale.
  3. Another option is to put a proxy in front of it like this one that I've used before: https://github.com/oauth2-proxy/oauth2-proxy. This will require you to login - I have a GSuite account so tied it to that but it supports other providers.

 

 




timmmay
20580 posts

Uber Geek

Trusted
Lifetime subscriber

  #3093754 23-Jun-2023 07:43
Send private message

My Fritzbox has a WireGuard VPN built into it. I can run WireGuard on my computer or phone, which puts that device onto the home network. If you can't do that you could put a Raspberry Pi or similar onto the internet if you have a static IP. Otherwise CloudFlare Tunnel is worth a look, I use those with CloudFlare zero trust to provide remote access to Home Assistant - though I can do that with WireGuard I did that because I use Tunnels to host a couple of family websites on the Pi as well.

davidcole
6034 posts

Uber Geek

Trusted

  #3093756 23-Jun-2023 07:51
Send private message

I think every solution is probably going to require some sort of third party thing if you don't want to connect directly to it (port forwarding) or via a self hosted vpn.

 

as nzkc said use those.   Or a variable on your thingspeak idea might be switch your esp8266 to use MQTT and use a cloud instance of mqtt (your esp8266 you connect to the externa mqtt server and subscribe to a command topic where you'd pass in the values.

 

To set the values you'd publish to the command topic on the mqtt server the values.   Is somethign that could run self hosted till you found a cloud mqtt server.

 

 





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 




mattenz
190 posts

Master Geek


  #3093784 23-Jun-2023 08:57
Send private message

You might be surprised at how rarely your dynamic IP address actually changes.

 

I've been using ESPHome, so would do it via Home Assistant.


richms
28176 posts

Uber Geek

Trusted
Lifetime subscriber

  #3093869 23-Jun-2023 09:42
Send private message

Unless there is a limitation that means you need to have a URL to hit from something else, I would change to using mqtt and use an internet hosted broker to get the messages to it. adafruit ran one when I last had a play to get that done. If the ESP is available to the internet even if you have it "secure" it will still get hammered with requests that IME cause it to either lag significantly or crash. The ESP32 may perform better with it being a multicore but I would still not be exposing anything like that to inwards connections.





Richard rich.ms

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.