9
Answers

Do I need SSL to access Kurento for remote stream retrieval in a Node

Photo of Sujeet Raman

Sujeet Raman

2y
785
1

Is it necessary to use SSL for accessing Kurento and retrieving remote streams in a one-to-many chat application with Node.js, where the Kurento server is running on a remote machine? I have noticed that the remote stream is not functioning correctly in my locally created app (not cloned from the official Kurento documentation). There is no errors logged anywhere and all function is executing correctly.Can anyone provide guidance or potential solutions for this issue? Thank you."

Answers (9)

2
Photo of Sujeet Raman
809 927 381.2k 2y

I will check those points and i have one doubt .do i  need to configure STUN/TURN as i am using a company machine? kurento docs didnt tell this

2
Photo of Prathap Reddy
189 10.5k 210.7k 2y

Sure sujeet, I can help you troubleshoot this issue. Here are a few things to check:

  1. Make sure that the Kurento Media Server is running and that it is configured correctly. You can find instructions on how to do this in the Kurento documentation.
  2. Make sure that you are using the correct URL to access the remote stream. The URL should be in the format https://<server_ip>:<port>/kurento/stream/<stream_id>.
  3. Make sure that your browser is compatible with the Kurento Media Server. You can find a list of compatible browsers in the Kurento documentation.
  4. Make sure that you have enabled Flash Player in your browser. Flash Player is required to play the remote stream.

If you have checked all of these things and you are still having problems, then you can contact Kurento support for help.

Here are some additional things to check:

  • Make sure that your firewall is not blocking the connection to the Kurento Media Server.
  • Make sure that you are using the correct version of the Kurento Media Server. The version of the Kurento Media Server that you are using must be compatible with the version of the client library that you are using.
  • Make sure that you have the correct permissions to access the remote stream. You may need to specify the Authorization header with the correct value in order to access the stream.

If you have checked all of these things and you are still having problems, then you can contact Kurento support for help.

2
Photo of Sujeet Raman
809 927 381.2k 2y

https://github.com/TribeMedia/kurento-group-call-1

 this app i am trying with remote kurento media server. i am unable to see the remote video.not only for this project but all my samples..can you help me to find why this issue happening

2
Photo of Prathap Reddy
189 10.5k 210.7k 2y

No, you do not need to use SSL certification for testing locally on your machine. SSL is used to secure data in transit, and when you are testing locally, your data is not being transmitted over the internet. Therefore, there is no need to use SSL.

However, if you are planning on deploying your application to a production environment, then you will need to use SSL. This is because in a production environment, your data will be transmitted over the internet, and you will need to protect it from being intercepted by third parties.

If you are not sure whether or not you need to use SSL, then it is always best to err on the side of caution and use it. SSL is a relatively simple thing to set up, and it can provide a significant security benefit.

@sujeet

2
Photo of Sujeet Raman
809 927 381.2k 2y

For testing localy in my machine should i use ssl certification? no right? my code is executing all function and send sdp..apart from prod env i want to test it localy.Kurento is running remotely thats why i asked for testing should i use  SSL? think i am doing a test run in local machine and kurento is in VM .in that case to get the remote stream do i need ssl?

2
Photo of Prathap Reddy
189 10.5k 210.7k 2y

1

Yes, it is necessary to use SSL for accessing Kurento and retrieving remote streams in a one-to-many chat application with Node.js, where the Kurento server is running on a remote machine. This is because SSL provides a secure connection between your application and the Kurento server, which helps to protect your data from being intercepted by third parties.

If you are not using SSL, then there is a risk that your data could be intercepted by someone who is eavesdropping on the network. This could include your chat messages, as well as any other data that is being transmitted between your application and the Kurento server.

To use SSL, you will need to configure your Kurento server to use a secure certificate. You can find instructions on how to do this in the Kurento documentation. Once you have configured your Kurento server, you will need to configure your Node.js application to use SSL. You can find instructions on how to do this in the Node.js documentation.

Once you have configured both your Kurento server and your Node.js application to use SSL, you should be able to access Kurento and retrieve remote streams without any problems.

If you are still having problems with your remote stream, then there could be a few other potential causes. One possibility is that you are not using the correct URL to access the remote stream. Another possibility is that there is a problem with your network connection. Finally, it is also possible that there is a problem with the Kurento server itself.

If you are not sure what the problem is, then you can try the following:

  • Check the URL that you are using to access the remote stream. Make sure that you are using the correct protocol (https://) and that you are using the correct port number.
  • Check your network connection. Make sure that you are connected to the internet and that you have a good signal strength.
  • Check the Kurento server. Make sure that the server is running and that it is configured correctly.

If you have checked all of these things and you are still having problems, then you can contact Kurento support for help.

1
Photo of Deepak Rawat
123 15k 848.5k 2y

it is highly recommended to use SSL (Secure Sockets Layer) or its successor, TLS (Transport Layer Security), when accessing Kurento for remote stream retrieval in a Node.js application. SSL/TLS provides secure communication by encrypting the data exchanged between the client and the server, ensuring privacy and integrity.

1
Photo of Sujeet Raman
809 927 381.2k 2y

how can i configure STUN/TURN in order to access the Kurento Media Server?

1
Photo of Prathap Reddy
189 10.5k 210.7k 2y

It depends on your company's network configuration. If your company's network uses a firewall or NAT, then you may need to configure STUN/TURN in order to access the Kurento Media Server.

STUN and TURN are protocols that are used to overcome the limitations of firewalls and NAT. STUN is used to determine the public IP address of your machine, and TURN is used to relay media traffic if your machine is behind a NAT.

If you are not sure whether or not you need to configure STUN/TURN, then you can contact your company's IT department for help.

Here are some additional information about STUN and TURN:

  • STUN (Session Traversal Utilities for NAT) is a protocol that is used to determine the public IP address of a machine that is behind a NAT. This information can be used to establish a connection to a remote server.
  • TURN (Traversal Using Relays around NAT) is a protocol that is used to relay media traffic between two machines that are behind a NAT. This can be used to establish a connection between two machines that would otherwise not be able to connect to each other.

If you are using a company machine, then it is always best to check with your company's IT department before configuring STUN/TURN. They may have specific requirements that you need to follow.