PDA

View Full Version : onincomingconnection


Bussyman
11/07/2017, 08:24 AM
Hi,

What mean port in this function?

[G]am3r
11/07/2017, 08:37 AM
Check this out: https://*******/st3U8o
I think so that I'll give you the port from which the player is connecting.

Vince
11/07/2017, 09:28 AM
https://en.wikipedia.org/wiki/Ephemeral_port

Bussyman
11/07/2017, 12:53 PM
If player is using sandbox (in one computer launch 2 gta or more) these port will be same?

HoussemGaming
11/07/2017, 12:55 PM
If player is using sandbox (in one computer launch 2 gta or more) these port will be same?

Yes !

Bussyman
11/07/2017, 12:58 PM
So i can do check in onincomingconnection and safe kick? because i don't want allow sandbox

Vince
11/07/2017, 01:15 PM
Yes !

Do you have any evidence to back that up, whatsoever? Because I call bullshit. The game chooses a random port from the range I posted above each time it starts up and the chance that the same port would be chosen twice is 0.00006%.

It is impossible to detect if the game is running in a VM or sandbox unless you can retrieve the MAC address, which you can't.

Meller
11/07/2017, 01:36 PM
The only way to block a computer to allow connection once is how @Vince said, but sadly SAMP doesn't support MAC adresses in the PAWN library. I'd suggest to just trust your members on playing honestly, after all, why would the players connect multiple times? I suppose I'd see such behaviour by a staff, but by players? Nah..