Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W5500 + EthernetWebServer #26

Open
MahdiBabaie opened this issue Dec 29, 2022 · 1 comment
Open

W5500 + EthernetWebServer #26

MahdiBabaie opened this issue Dec 29, 2022 · 1 comment

Comments

@MahdiBabaie
Copy link

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.
https://github.com/ciniml/WireGuard-ESP32-Arduino
https://github.com/khoih-prog/EthernetWebServer
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?

@darren-trottier
Copy link

darren-trottier commented Mar 17, 2023

Hi @MahdiBabaie : i'm not sure that it is working with W5500 but it does with LAN8720

Line 924 of wireguardif.c
Original : tcpip_adapter_get_netif(TCPIP_ADAPTER_IF_STA, &underlying_netif);
Replacement : underlying_netif = netif_default; // Use current netif as the underlying netif of the WireGuard interface.

See for information :

#15

main...15_fix_crash_with_eth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants