andr13 / ESP32-Web-WireGuard

ESP32 Wireguard Hall Sensor
BSD 2-Clause "Simplified" License
11 stars 2 forks source link

ESP32 connect but i can't ping or see the page #2

Closed raccococo closed 4 months ago

raccococo commented 4 months ago

Hi, my esp32 connect to the wg server, but it have no handshake and I can't do ping on it or see the web page trough wireguard clients, may you help me to understand why?

andr13 commented 4 months ago

Hello, @raccococo! 👋🏻

First of all, monitor the behavior of the program from the Wireguard server side. Connection, incoming/outgoing traffic, time of the last handshake. Maybe ESP32 is disconnecting from the server for some reason. This data could shed light on a possible solution to the problem!

You should also consider that in my implementation of Wireguard, the server must necessarily use PSK to connect to the ESP32. And make sure that the PersistentKeepalive parameter is set to 15 on the server side. Otherwise there is a risk of packet loss and connection problems.

raccococo commented 4 months ago

Thank you! I've changed the PersistentKeepalive but nothing changed, I also discovered that I wasn't using the external antenna because you have to change the position of a resistor. So my problem was the distance from the router in the end. Thanks anyway and have a good evening!

andr13 commented 4 months ago

Oh, good! Glad to hear you solved your problem 😊

So my problem was the distance from the router in the end. Thanks anyway and have a good evening!

Regarding signal strength and distance from the router - I described this nuance in detail in Troubleshooting