My server is running on RPi3, on ip 192.168.0.4
The blynk app connects to the server, I can see it on the server’s administrative page.
However, my Arduino, on the same network as the RPi3, with ip 192.168.0.20, can not connect to the server.
Displays this message:
[325065] Connecting to 192.168.0.4
[330066] Connecting to 192.168.0.4
[335067] Connecting to 192.168.0.4
[340068] Connecting to 192.168.0.4
or when I change the scketch:
[10002] Connecting to 192.168.0.4:8443
[15003] Connecting to 192.168.0.4:8443
[20004] Connecting to 192.168.0.4:8443
I’ve already changed the scketch ports to 8442, 8443, 9443. The app on my smartphone is 8443.
Change the 8443 to 8442.
Are you sure the token is correct, i.e. has it come from the Pi or the cloud (must be from the Pi)?
Everything else looks ok in the sketch.
I’ve tested it by doing this switch, not just for 8442, but some as well.
And yes, the toke is correct and comes from the RPi.
At the moment I’m at work and as much as I access my computer at home, my RPi is off.
As soon as I can upload images!
Have you used the W5100 for other none Blynk related projects i.e. does it work as there are lots of references on the internet about faulty hardware i.e. wrong resistors on the board etc?
Finally, I did. Thank you @Costas!
I was not able to ping the arduino IP, so it was not connected.
I was able to do a network share (ICS) from my wifi to lan, so the arduino connected with ip 192.168.137.39 and it ran normally!