June-19th-2020, 10:16 AM
Dear Armin,
Thank you very much for your kind support.
I found out what the problem was.
The problem was in JavaScript.
I replaced hostname with IP address when creating a WebSocket object.
========
1: var uri = "wss://" + "192.168.1.23:1880" + "/andonws"; // it was "ntb827ebad4495:1880" before.
2: var webSocket = null;
3: function open() {
4: if (webSocket == null) {
webSocket = new WebSocket(uri);
.......
========
I am not sure why the hostname is not recognized in my home network environment.
But, anyway, the websocket is working properly with an IP address.
Best regards,
Dear Armin,
Thank you very much for your kind support.
I found out what the problem was.
The problem was in JavaScript.
I replaced hostname with IP address when creating a WebSocket object.
========
1: var uri = "wss://" + "192.168.1.23:1880" + "/andonws"; // it was "ntb827ebad4495:1880" before.
2: var webSocket = null;
3: function open() {
4: if (webSocket == null) {
webSocket = new WebSocket(uri);
.......
========
I am not sure why the hostname is not recognized in my home network environment.
But, anyway, the websocket is working properly with an IP address.
Best regards,
Thank you very much for your kind support.
I found out what the problem was.
The problem was in JavaScript.
I replaced hostname with IP address when creating a WebSocket object.
========
1: var uri = "wss://" + "192.168.1.23:1880" + "/andonws"; // it was "ntb827ebad4495:1880" before.
2: var webSocket = null;
3: function open() {
4: if (webSocket == null) {
webSocket = new WebSocket(uri);
.......
========
I am not sure why the hostname is not recognized in my home network environment.
But, anyway, the websocket is working properly with an IP address.
Best regards,
Dear Armin,
Thank you very much for your kind support.
I found out what the problem was.
The problem was in JavaScript.
I replaced hostname with IP address when creating a WebSocket object.
========
1: var uri = "wss://" + "192.168.1.23:1880" + "/andonws"; // it was "ntb827ebad4495:1880" before.
2: var webSocket = null;
3: function open() {
4: if (webSocket == null) {
webSocket = new WebSocket(uri);
.......
========
I am not sure why the hostname is not recognized in my home network environment.
But, anyway, the websocket is working properly with an IP address.
Best regards,