Server in docker, android APP send udp to container ip


#1

My server set on a docker container has IP 172.18.0.2 and the host’s public IP is 60.205.191.90. I configured NAT for the two IPs and single port 20000 in ~/.sip-communicator/sip-communicator.properties. I found that Android app sends UDP packages to 172.18.0.2:20000 and 60.205.191.90:20000 both. 172.18.0.2 is not reachable in WAN. How to explain this behavior?


#2

Where are you seeing this? A wireshark trace? The bridge will have advertised that IP address so the Android app will prove it.


#3

In android emulator and tcpdump in PC.


#4

Is docker running on the PC where the emulator is running?


#5

Docker is running on a PC in WAN and emulator is running in my PC. tcpdump in my PC.


#6

Can you see the SDPs? If the Jvb is advertising the local address then this is expected.