我想測試客戶端/服務器和從服務器端發送udp客戶端到客戶端的流量。使用STUN發送UDP到客戶端後面的客戶端
我在本地機器上運行stun客戶端,得到如下結果。
Lenovo-Z50-70:~/iop-bb$ stun -v my_stun_server
STUN client version 0.96
Opened port 22948 with fd 3
Opened port 22949 with fd 4
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 212.227.107.179:3478
Encoding stun message:
Encoding ChangeRequest: 4
About to send msg of len 28 to 212.227.107.179:3478
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 212.227.107.179:3478
Received stun message: 88 bytes
MappedAddress = 41.224.250.29:22948
SourceAddress = 212.227.107.179:3478
ChangedAddress = 127.0.0.1:3479
XorMappedAddress = 41.224.250.29:22948
ServerName = Vovida.org 0.96
Received message of type 257 id=1
- 在服務器端,我執行以下,回聲 「你好」 | nc -w1 -u 41.224.250.29 22944.
但是,在客戶端我沒有收到數據包。 有什麼建議嗎?