I made websocket server on my local network.
So if I use local IP address for websocket, then I can connect to server from my local network but I can not connect from public network.
ESP8266WebServer server(80);
WebSocketsServer webSocket = WebSocketsServer(81);
var wsUri = "ws://192.168.1.129:81/";
and if I use dns host for websocket then I can connect to server from public network but I cannot connect from local network
ESP8266WebServer server(80);
WebSocketsServer webSocket = WebSocketsServer(81);
var wsUri = "ws://dns-host:81/";
is there any way to make websocket server which I can connect same time from local network also from public network ?