'Need External API or wrong domain' when connecting to my server via Electron on Windows but works on Ubuntu

When I tried connecting to my server from the Electron app on a Windows machine outside my LAN, I got that message, but when I connect via Electron from an Ubuntu device on my LAN (but still via public domain) it connects fine. Might be because I have to register for the insertable streams but then idk why it worked from Ubuntu.