Home > other >  How to implement mobile phone and the camera video streaming through NAT penetration connections?
How to implement mobile phone and the camera video streaming through NAT penetration connections?

Time:09-24

I mainly Java development;
IP, cell phone and cameras are not the network is connected to the server,
Want to know what is the common open source technology, can let the server NAT penetration service implementation mobile phone and the camera video streaming connections?

Also can realize p2p, phones and video cameras can direct, watching video can not occupy the bandwidth of the server?
If you have related case technology connection post more grateful

CodePudding user response:


Ipv6 for several years, the popularization, I recently tested, mobile and telecom have ipv6. 4 g phone card also have ipv6. Testing can access, premise is to know that the other party ipv6 address,
If you don't have ipv6. So only p2p make hole, have a ready-made auxiliary tunnels agreement, STUN and TURN, ICE. The first step must be to detect network type, and then according to the type test communication,

CodePudding user response:

reference 1st floor smwhotjay response:

Ipv6 for several years, the popularization, I recently tested, mobile and telecom have ipv6. 4 g phone card also have ipv6. Testing can access, premise is to know that the other party ipv6 address,
Without ipv6. So only p2p make hole, have a ready-made auxiliary tunnels agreement, STUN and TURN, ICE. The first step must be to detect network type, and then according to the type test communications,
current server nginx interferes RTMP server setup, camera like server push flow, mobile phone flow, and realized the live, but this server bandwidth consumed, temporarily didn't find what technology case can achieve phones and video cameras (haven't public IP) of p2p, watched the webrtc simple, see some articles said peer-to-peer (p2p) can realize LAN, the local area network (LAN) can realize also don't know

CodePudding user response:

Look online to say, the double side are symmetrical NAT will not be able to (or can only guess, unreliable) make hole;
We now want to mobile phone (assuming the asymmetrical NAT) the camera (4 g card, is assumed to be symmetric NAT) video, it can realize p2p make hole, please do not go (i.e., video streaming server bandwidth)?
Looked at the knowledge of the sip, now there are a lot of local area network (LAN) the construction of the sip server tutorial, but the public how to set up, there is no detailed tutorial,

CodePudding user response:

reference 1st floor smwhotjay response:

Ipv6 for several years, the popularization, I recently tested, mobile and telecom have ipv6. 4 g phone card also have ipv6. Testing can access, premise is to know that the other party ipv6 address,
If no ipv6. So only p2p make hole, have a ready-made auxiliary tunnels agreement, STUN and TURN, ICE. The first step must be to detect network type, and then according to the type test communications,
see online said, double side are symmetrical NAT will not be able to (or can only guess, unreliable) make hole;
We now want to mobile phone (assuming the asymmetrical NAT) the camera (4 g card, is assumed to be symmetric NAT) video, it can realize p2p make hole, please do not go (i.e., video streaming server bandwidth)? thank you

CodePudding user response:

Through constructing turn server can realize one-on-one video chat
  • Related