简体   繁体   中英

open incoming UDP port in android mobile phone

For a certain test I need to make a P2P connection between two mobile devices (running android). I can get assign a publicly routable static ips for the mobile devices. I need to know whether is it possible to open a UDP port inside a device for which the other device can directly push content?

Yes it is possible, provided you are not attempting to bind to a restricted port and the port is free.

App I'm currently working in is listening for incoming P2P SIP on 5062.

$ adb -s 018a99b858b628cb shell netstat -an | grep 5062
udp        0      0 192.168.96.93:5062      0.0.0.0:*

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM