1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Packet limit

Discussion in 'Development' started by PocketMineSVMaker, Jul 30, 2020.

  1. PocketMineSVMaker

    PocketMineSVMaker Silverfish

    Messages:
    21
    guys, how can i change packet limit per one ip address? i use waterdog and it logs player on pocketmine with 127.0.0.1 and all player on server are with 127.0.0.1. when server reach 26 player, raklib block 127.0.0.1 for 300 seconds. what i must do? change pocket limit or ...? help me please
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    PHP:
    public function onEnable() {
            foreach (
    $this->getServer()->getNetwork()->getInterfaces() as $interface) {
                if(
    $interface instanceof RakLibInterface) {
                    
    $interface->setPacketLimit(PHP_INT_MAX);
                    break;
                }
            }
    }
     
    brokiem, GodWeedZao and Primus like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.