Wireguard does not work with W5500 and EthernetWebServer

Hello to all
Hardware: ESP 32 + W 5500 Module
Software: PlatformIO + Visual Studio Code
Libraries used: WireGuard-ESP32.h + EthernetWebServer.h
You can see the above libraries in the following links on github.

I can connect to Wireguard VPN Server using WiFi connection and WireGuard-ESP32.h library and everything works fine and sending and receiving data is fine.
When using the EthernetWebServer.h library, the device is connected to the Internet and can be seen and pinged in the Local network, and even when connected to the Wireguard VPN Server, the function wg.is_initialized() returns the value 1, but in sending and receiving data There is a problem.
Where do you think the problems are?

the WireGuard library works on the lwip tcp/ip stack of the esp32 (so on WiFi or SoftAP or MAC peripheral of the esp32) .
the Ethernet library uses tcp/ip stack in the firmware of the W5500.
so those are too separate networking stacks.

So you mean that it is impossible to implement wireguard on ethernet??

the esp8266 arduino supports Ethernet over its LwIP stack with W5500

what about ESP32?
do you have a sample program of esp8266?

esp32 supports other Ethernet adapters

I thank You a LOT
I wish nothing but best for you

so it look like the esp32 supports the W5500 in SDK. only I can't find a simple example.

FYI, I recently added the new LwIP-based Ethernet libraries for ESP32

For ENC28J60

For W5500

For W6100

@khoih-prog so the w5500lwip is bundled with WebServer library?

Not in the libraries. They use the LwIP from SDK, bundled in the new ESP32 core.

@khoih-prog I meant the network interface code, not lwip.
I see it bundled in your library. I didn't find it in the core
libraries/WebServer_ESP32_W5500/src/w5500/esp_eth

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.