You mean I only need to know how many millisecs it takes (in avg) for packages to be returned?
Host sends testString
Client receives it and send it back. + it starts it' Millisecs timer.
Host receives the response and checks how long time has passed in millisecs()
Host now sends antoher test pack to the CLient with this time
The client Receivs this package and checks it's millisecstimer to the package. When done 3-4 times you can get an average.
Now each plackaet recieved by either host or client is known to have this latency and therefor you calculate where the other players most probably are when package was received.
Host sends testString
Client receives it and send it back. + it starts it' Millisecs timer.
Host receives the response and checks how long time has passed in millisecs()
Host now sends antoher test pack to the CLient with this time
The client Receivs this package and checks it's millisecstimer to the package. When done 3-4 times you can get an average.
Now each plackaet recieved by either host or client is known to have this latency and therefor you calculate where the other players most probably are when package was received.