Does OnIncommingConnection gets called before OnPlayerConnect ?
#1

And also, GetPlayerIpPort() function, port is always the server's port ?
Reply
#2

Obviously. And no, that would be the client port. This is pretty useless to know since the port is chosen ad random from a pool of available ports in the range 49152 – 65535. See: https://en.wikipedia.org/wiki/Ephemeral_port
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Obviously. And no, that would be the client port. This is pretty useless to know since the port is chosen ad random from a pool of available ports in the range 49152 – 65535. See: https://en.wikipedia.org/wiki/Ephemeral_port
Let's say someone is stressing my server (DDoS) ON PORT 7777 (or whatever the server port is), would it basically call this function all through the attack ?
Reply
#4

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
Let's say someone is stressing my server (DDoS) ON PORT 7777 (or whatever the server port is), would it basically call this function all through the attack ?
During a generic DDoS attack where the attacker isn't exploiting something within the server, OnIncomingConnection won't be called. It is only called when someone sends an incoming connection to the SA-MP server, not the IP address/network.
Reply
#5

Quote:
Originally Posted by Abagail
Посмотреть сообщение
During a generic DDoS attack where the attacker isn't exploiting something within the server, OnIncomingConnection won't be called. It is only called when someone sends an incoming connection to the SA-MP server, not the IP address/network.
Exactly, that's why I marked the server port
AKA if you send a DDoS attack on the SAMP servers port
Reply
#6

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
Exactly, that's why I marked the server port
AKA if you send a DDoS attack on the SAMP servers port
DDosing the server through the SAMP port won't send an incoming connection.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)