Answer the question
In order to leave comments, you need to log in
How to securely transfer data between two computers through NAT?
There is a task: you need to transfer a video stream over RTP using gstreamer and transfer raw data over TCP from one computer sitting behind NAT / firewall to another computer sitting behind NAT / firewall. There is an external server with a white address. And it would be nice not to load this server unnecessarily.
Question: what is the best way to solve this problem?
It will be good if it is a python library for the server and clients.
Answer the question
In order to leave comments, you need to log in
You need the STUN protocol - it uses an external server only to establish a connection, and then the exchange goes point-to-point. You can look for its ready-made implementations, or develop something yourself in its likeness.
Есть gstreamer-rtsp-server, библиотека для gstreamer. В ней, если взять исходники, есть пример для rtsp/rtp proxy. На его основе можно сделать свой прокси, который будет жить на белом сервере.
https://github.com/GStreamer/gst-rtsp-server/tree/...
> Вопрос: как решить эту проблему надежнее всего?
OpenVPN с шифрованием.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question