app.husarnet.com shows the connected device and all its parameters:
name - status - address - info
but never shows an available web server under “info” column
The code works well when accessing inside the local network: 192.168.1.X:8000 but not when using https://-----------------------------------------------8000.husarnetusers.com/index.html
Firefox allways shows: 502 Bad Gateway
Hi, basically https://................../husarnetuser.com/index.html is not the perfect way of accessing a web user interface of your ESP32 board. In this case you don’t use peer-to-peer to access you ESP32 but a proxy server instead.
The better way is to connect ESP32 and your laptop to the same Husarnet network.
If you do so, you ESP32 web UI will be available from a level of your web browser under the hostname or Husarnet IPv6 address of your ESP32 board, eg. :
Hi, I know it’s too late
But I have a question
Do you know the reason for working the code well?
Is it possible to access WEBUI of Husarnet with the ESPAsyncWebServer library at all?
Hello Domink
Thanks for your quick reply.
I have problems to run this code.
what does these lines of code means?
extern const char index_html_start[] asm("_binary_src_index_html_start");
const String index_html = String((const char*)index_html_start);
can you explain above lines?
I get compiling error in here.
Hi, the project is made for VSC + platformio, not for Arduino IDE.
String((const char*)index_html_start); will not work in Arduino IDE, because this part is handled by platformio. This is very handy feature to deal with HTML files in embedded projects.