hi now im learning and developing android application it's about remote controlling, make android phone to control computer but... i've encountered serious problem.. When client is under the NAT environment, both server and client couuldn't communicate each other.. well i've found out.. it was hole punching issue.. it says that i have to find NAT's ip and port address first. but i don't know how do i get the address. or i can't find simple code about it. can anyone help me? or it's okay just simple advice i desperatly needs your help. thanks.
Asked
Active
Viewed 133 times
-1
-
page is gone :'( – John_potato Apr 19 '17 at 04:41
1 Answers
0
Make your APP keep a long connection with Server
Let server maintain all the connected clients, server will know the ip address and port nunmber
Let server help you to forward the data or you can let server to help setup STUN
Please also refer to STUN (Session Traversal Utilities for NAT)

Robin
- 10,052
- 6
- 31
- 52