C
C#10mo ago
doolhofx

Access my home device from outside the LAN network with me maui app

Hello! Maybe this isn't the right server for my question, but I am building a mobile and desktop app using C# .NET maui. It is for reading data from my Easy E4, it's a small PLC that I use at home. I want to read and write data to it from outside of my LAN network, without port forwarding. I think reverse proxy isn't an option, right? Because you need a proxy server in the LAN network, right? For extra info I am using Modbus TCP to read and write data from my app
23 Replies
Pobiega
Pobiega10mo ago
reverse proxy is absolutely an option. Look at something like ngrok
doolhofx
doolhofxOP10mo ago
Is there any other alternatives? Or do you think reverse proxy would be the way to go?
Pobiega
Pobiega10mo ago
its the only way to get outside traffick into your device without port forwarding that I can think of
Angius
Angius10mo ago
I recommend Cloudflare Tunnel But NGrok is also good
doolhofx
doolhofxOP10mo ago
Thank you both! I will look into both. I have to setup a reverse proxy server on my client side then, right?
Angius
Angius10mo ago
Yep
Plerx
Plerx10mo ago
i second CF tunnels, their free tier is also much more genours than ngrok and if you have a domain with cf you dont need to use ephemeral urls
Angius
Angius10mo ago
Yeah, a tunnel + a cheap domain (also on CF) turn out much cheaper than NGrok
Plerx
Plerx10mo ago
domain doesnt have to be purchased at CF you can let your provider point to CF, but yeah i agree cf domains have great value
Angius
Angius10mo ago
Can't beat no-markup pricing lol
Plerx
Plerx10mo ago
yeah i just wanted to point out that i works with other domain provider. Also for tlds CF dont offer
doolhofx
doolhofxOP10mo ago
Maybe dumb question but what is CF?
Angius
Angius10mo ago
Cloudflare
Plerx
Plerx10mo ago
cloudflare
doolhofx
doolhofxOP10mo ago
Oooh That was a really stuipid question
Plerx
Plerx10mo ago
naa your fine
doolhofx
doolhofxOP10mo ago
I guess something like that isn't possible without a reverse proxy server? Because I can't install that on my client device, so I would need an extra device for that.
Jimmacle
Jimmacle10mo ago
basically, you either need to allow things to connect directly to your server or have your server reach out and connect to another server that can do that and forward the connection is there a particular reason you can't just foward a port?
doolhofx
doolhofxOP10mo ago
This device will be in someone else's LAN network and I don't want to get into their router For now it could work with port forwarding because I am testing in my own netwerk. But for the future I want it to work in other networks without a lot of work. But for example I have a small cheap IP camera that I can view on my phone using the app from anywhere in the world. Or a power meter app, solar panel app etc How do these companies do that? Is that also reverse proxy or would that be working different? You have to setup those devices once and then they keep working.
Pobiega
Pobiega10mo ago
reverse proxy, or dial home in the case of the power meter, you likely dont talk to the actual device itself but rather a central server that the power meter sends data to, aka dial home
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Jimmacle
Jimmacle10mo ago
at least in the US i think power meters specifically are on a mesh network and just report data to the power company through that
doolhofx
doolhofxOP10mo ago
We have P1-meters, you can plug them into your smart meter and they are connected to an app (Homewizard) for example I will look into that! Seeing what they explain on their site and git seems hopefull
Want results from more Discord servers?
Add your server