You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Debian 11 on a small Linux board on the local network whre also my PC is present.
On this board a C-application is running which reads all hardware. Within this C-application an instance of wsServer is running. Also on the board a http: webserver is running. When a website is opened on the board, it starts a ws-client to wsServer and the status of the hardware is communicated to the website via the websocket. This way the hardware status is shown in real-time on the webpage. Beautiful!
Item nr 1
The website can only open a websocket connection to the board when using the hostname or the IP address of the board.
When using localhost or 127.0.0.1 a connection is not created App.vue:104 WebSocket connection to 'ws://localhost:8080/' failed:.
So far so good, normally this would not be a big issue.
But.
Item nr 2
When the website is accessed from outside the local network via a router we have seen that the console of the browser window is showing a mixed content error Mixed Content: The page at xxx was loaded over HTTPS, but requested an insecure yyy. This is correct because in that situation the website is called via https: and the websocket connection would be opened via ws:
SSL support
I have read your instructions for enabling SSL, but I can't get it to work. In no situation a wss: connection is opened WebSocket connection to 'wss://10.7.52.120/' failed:. I tested with localhost, 127.0.0.1 and the board's IP address, none of them work.
I also tried a few other options for the stunnel config like the following, but also no positive result:
Situation description
I am running Debian 11 on a small Linux board on the local network whre also my PC is present.
On this board a C-application is running which reads all hardware. Within this C-application an instance of wsServer is running. Also on the board a http: webserver is running. When a website is opened on the board, it starts a ws-client to wsServer and the status of the hardware is communicated to the website via the websocket. This way the hardware status is shown in real-time on the webpage. Beautiful!
Item nr 1
The website can only open a websocket connection to the board when using the hostname or the IP address of the board.
When using
localhost
or127.0.0.1
a connection is not createdApp.vue:104 WebSocket connection to 'ws://localhost:8080/' failed:
.So far so good, normally this would not be a big issue.
But.
Item nr 2
When the website is accessed from outside the local network via a router we have seen that the console of the browser window is showing a mixed content error
Mixed Content: The page at xxx was loaded over HTTPS, but requested an insecure yyy
. This is correct because in that situation the website is called via https: and the websocket connection would be opened via ws:SSL support
I have read your instructions for enabling SSL, but I can't get it to work. In no situation a wss: connection is opened
WebSocket connection to 'wss://10.7.52.120/' failed:
. I tested withlocalhost
,127.0.0.1
and the board's IP address, none of them work.I also tried a few other options for the stunnel config like the following, but also no positive result:
or
even
Could you help me with this please?
Looking forward to hearing from you
Best regards,
Raymond
The text was updated successfully, but these errors were encountered: