I have a Blynk server installed on a Raspberry Pi 2. I have a project with Arduino / ESP8266 in WiFi that works, I can turn on / off a LED via the Adroid application. BUT if I want to go through a URL (or IFTTT webhook), nothing happens. My local server is well accessible via the Internet, ports dedicated to Blynk are open and redirected to the server.
I tested in the browser: http://MyLocalIP/MyBlynkToken/update/d10?value=1 http://MyPublicIP/MyBlynkToken/update/d10?value=1
Here a scan from my PC to my raspi
If I made tcp dump port 8080 and after, type in my browser : 192.168.0.30/b5da940cef064a4aa76cae053cb93eb2/update/d10?value=1
there are 0 packets captured
You need to start pay attention to what I write and learn the difference between:
https - (please note the S) secure, uses port 9443 and http - (no S!) insecure, uses port 8080. The last URL will not work for this reason alone.
As I have said to other [in your situation], this is most likely a network misconfiguration somewhere on “your side” and not an error due to Blynk. The snag is that the Blynk people wants this forum to be about Blynk, and not a general support for more or less unrelated issues. So they might close the topic for further discussion (just so you don’t get surprised if it happens).
Network issues can be very hard to solve thru a forum, it’s a more hands-on business. But I’ll give you some pointers and help you where I can.
I smell disaster! Are you sure your router let’s you access the public IP from within the local subnet? NAT, VLAN, DMZ… Ask a friend and see if he can access the pages from the outside world. Don’t forget about the ports and https.
Not unless you have added some rules to forward certain connections (ports) to say :80. But if that where the case, nginx should be answering the call.
Ho… my mistake,
I followed your advice and delete the demilitarized zone. I redirected the ports 8441,8442,8443,8080,9443 to my server, add "server.host=192.168.0.30
" to server.properties and it works … Via browser and via an IFTTT webhook, cons with 5sec latency. I will work on it.
Thank you for your help anyway.
Don’t get me wrong, it’s not that I don’t want to help you, but my experience is that these problems can be very tricky to sort out without actual access to the hardware. The forum admins are kind people and will normally not bother. It was more a heads up because I can’t control them with my Jedi mind tricks yet
Just released I forgot to tell you how my setup is, without DMZ and other crap But from the look of it, you managed to copy it anyhow
I’m using two nets, one “exposed” 192.168.0.0, and one for everything else 192.168.1.0. From the router 192.168.0.1, I have a single port forward to 192.168.0.60:8443 so the app can connect to the server from the outside. That’s about it!
If you could, skip the non SSL ports and keep these: