Quantcast
Channel: Questions in topic: "ping"
Viewing all articles
Browse latest Browse all 93

client to client ping - NAT punchthrough

$
0
0
Hi, is there any way to get client A to client B ping when they are connected to the same server? I need a way to get the direct ping from client A to client B, without going through the server. Can client A get the NetworkPlayer of client B, and use GetAveragePing(client B)? Or is Ping(client B) the only way? Because I believe client A is able to join client B if client B hosts a server, but client A is unable to use Ping(client B). This could be because when joining client B (server), NAT punchthrough is used, and when using Ping(), there is no NAT punchthrough. Can I use RPC call from client A to client B? Does the RPC go directly from A to B, or does it go from A to MasterServer / Server to B? What is the real route? Any ideas? Thanks for help! - Edit: (Sorry, I'll be more specific to my problem) Here is the problem I am having: (in steps) 1) A hosts a server. 2) B is able to join A with NAT punchthrough. 3) A shuts down the server. 4) A joins server C. 5) B joins server C. 6) B cannot Ping(A.ipAddress) in server C, because A does not have a public IP and A is behind a NAT. How can I make B ping A directly when they are both on server C? Or is it correct for B to do Ping(A.externalIP) in such a situation, which will give the proper ping value from B to A?

Viewing all articles
Browse latest Browse all 93

Trending Articles