Need technical help using web sockets from a different domain

Job ID: 34999555

Budget: €30 – €250 EUR

I have project that is installed on one server (a linux and apache server) and uses socket.io to open up sockets for clients to connect to and do video conferencing using mediasoup.


The server is installed and works well. All ssl certificates are installed on the server


There is also a client application from a web page and and instantiates a connection to the web server using the client side libraries of socket.io


Everything works well when the client application in the front end facing web page is on the same domain as the server app .

The problem I am having is when the client side connection from socket.io is attempted from a different domain.

So for example server application is running on the linux machine at a domain :

https: lms.connect-info

Which has socket.io installed and running and opens up socket for clients to connect (on port 9002)


And the client app is running on a different machine eg :

https:localhost:5001

When the client app tries to connect to the server app using the client side library from socket.io i get an error

net::ERR_NAME_NOT_RESOLVED

As mentioned when the page runs from the linux server it works as expected. All the ssl certificates have been installed.

So I am thinking it is a security restriction from the server side.

I have ran into the documentation of socket.io and says that you have to handle cors

https://socket.io/docs/v4/handling-cors/
https://socket.io/docs/v4/client-initialization/


But I do not have this low level knowledge to configure the server to allow this. Plus I read that you have to configure .htaccess on the server which I am not aware of.



What are the requirements of this work.
I would like a developer or IT admin to troubleshoot this issue and configure the server to allow web sockets to connect from a different domain.
I will give access to the developer to the server machine (linux , apache) to make any configurations needed. I will also give access to the client machine that runs the client app to connect.
I will give the technician any support he may require. The main developer of the app will also be available to give any information asked concerning about how the app runs or any information on the mediasoup server running.
After this task I am also looking for long term support on related IT server support and admin tasks, which of course would be a separate agreement


Please see attached doc for more details and screenshots
Related categories: Linux Apache Socket IO WebRTC