Are you using the rev_rmnet# interface to obtain the IP address of the 
device ?

If you can elaborate on the above question that would be a good start.

UDP will work, you can use a protocol like STUN to perform "hole punching" 
or setup your own publicly addressable UDP server to assist in relaying the 
conversation.

see https://tools.ietf.org/html/rfc5389

STUN will tell you the external IP address of the device and external ports 
of the NAT the device is on.
STUN will not work in all network types. 

Additionally you may need to set up web services to assist in name and IP 
address queries. i.e. each remote device registers a user name and external 
IP address and port after using STUN to determine this, also register via 
WS if the device is online.
You then use STUN during call setup to assist in hole punching by issuing 
binding requests. You also want to issue the binding requests periodically 
on the listening socket for keepalive purposes. Read the RFC.

there are a lot of nuances to this, you can contact me at 
paulzazzar...@3zwireless.com






On Tuesday, April 26, 2016 at 12:14:23 PM UTC-4, Jose Alberto wrote:
>
> Hello,
>
> We need to receive a UDP stream sent from a UAV on an Android phone. It 
> has been working great over Wi-fi but now we have problems receiving it 
> over 4G. (We don't get any traffic or we get only 1 packet)
> I have read that operators use NAT and firewall, making it difficult to 
> establish UDP traffic.
> How do other apps like Skype, google voice, etc. solve this?
> Should we encapsulate the UDP traffic in some other protocol?
> Thank you
>
> Best regards,
> Jose
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ca4618a9-4403-45a4-9356-4985405af29c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to