ESP32 PoE
AHidalgoP opened this issue · 0 comments
AHidalgoP commented
After connecting to WireGuard via ETH, the ESP32 cannot resolve the host URL's. It seems it could be a DNS problem or board problem, but I'm not sure. ¿Any ideas?
`Serial.print("ETH MAC: ");
Serial.print(ETH.macAddress());
Serial.print(", IPv4: ");
Serial.print(ETH.localIP());
if (ETH.fullDuplex()) {
Serial.print(", FULL_DUPLEX");
}
Serial.print(", ");
Serial.print(ETH.linkSpeed());
Serial.println("Mbps");
Serial.println("Adjusting system time...");
configTime(9 * 60 * 60, 0, "ntp.jst.mfeed.ad.jp", "ntp.nict.jp", "time.google.com");
if( !wg.is_initialized() )
{
Serial.println("Initializing WireGuard interface...");
if( !wg.begin(WG_LOCAL_IP, WG_SUBNET, WG_GW, PRIVATE_KEY, END_POINT_ADDRESS, PUBLIC_KEY, END_POINT_PORT) )
{
Serial.println("Failed to initialize WG interface.");
}
else
{
Serial.println("WireGuard interface initialized.");
}
}
eth_connected = true;
break;`