PortSync | Patreon Article
-
Dual Web Servers: Two independent web servers running on the same ESP32, on ports 80 and 81.
-
Password Protection: Users must log in with a predefined password.
-
Shared Chat History: Both servers read from and write to the same chat history string.
-
Web Interface: A modern, responsive web interface for sending and receiving messages.
-
Memory Management: The chat history is limited to prevent memory overflow.
-
Step 1: Connect the ESP32 to WiFi (SSID and password set in code).
-
Step 2: Access Server 1 at http://<ESP_IP> and Server 2 at http://<ESP_IP>:81.
-
Step 3: Log in with the password.
-
Step 4: Start chatting. Messages from Server 1 appear in blue (right-aligned), from Server 2 in green (left-aligned).