Hi,
I'm stuck on a problem.
I tried to connect to the websocket server set up on my laptop, the code used to connect came straight from the documentation. The Arduino gets the IP address but cannot connect. I started checking and pinging my ESP32. The server is working, the connection from the PieSocket Tester is correctly established.
The Ip address of the esp32 is 192.168.1.7. The address of the computer on the same network is 192.168.1.4. From the computer I can ping the esp address with no problem, but the address of the computer with the esp does not work. When changing the network to HotSpot from the phone it is the same. what could be wrong?
Thanks for you reply. Your solution produces the same result.
But, I have found what the problem is.
After changing the router settings, more specifically the ping blocker (I didn't know such a setting existed at all) the devices see each other normally.
Anyway, it's the "regular" way to call such function.
IDK, as far as I know routers ping blocker function is for ICMP coming from outside your network (disabled anyone else checking if your router is online), not for local clients.
BTW if that router (which one?) setting was the culprit, it's ok!