• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
netpi-desktop-hdmi with setting network=bridge
#11
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,
  Reply


Messages In This Thread
netpi-desktop-hdmi with setting network=bridge - by tad - June-10th-2020, 06:45 AM
RE: netpi-desktop-hdmi with setting network=bridge - by tad - June-19th-2020, 10:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Desktop LucioFiam 5 2,608 November-5th-2022, 10:33 AM
Last Post: Armin@netPI
  Hdmi not working s.stucchi 13 6,499 February-28th-2022, 09:24 AM
Last Post: Armin@netPI
  Remot VPN connection from netPI to company network JG_KIT 6 3,141 July-8th-2021, 02:55 PM
Last Post: JG_KIT
  linux bridge eth0 and cifx0 carmel85 3 3,639 August-13th-2020, 08:41 AM
Last Post: Armin@netPI
  netPI Desktop java Hochschulstudent 13 7,998 August-13th-2020, 08:33 AM
Last Post: Armin@netPI
  Network issues after upgrading to Stretch + kernel to 5.4 carmel85 2 3,163 July-28th-2020, 03:04 PM
Last Post: Armin@netPI
  VPN tunnel to netPI and local network in 10 minutes Armin@netPI 0 2,287 June-5th-2020, 05:40 PM
Last Post: Armin@netPI
  [SOLVED] netPI with Raspbian Desktop firefly 8 6,037 November-28th-2019, 06:01 PM
Last Post: Armin@netPI
  [SOLVED] Slow network connection Andi 5 3,825 May-22nd-2019, 05:16 PM
Last Post: Armin@netPI
Information [INFO] Setting the correct timezone in a container Armin@netPI 0 1,741 February-3rd-2019, 08:23 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)