Skip to content

Fatal error: Uncaught React\Socket\ConnectionException: Could not bind to tcp://127.0.0.1:8192 #2

@Ailincai-Nicolae-Rares

Description

@Ailincai-Nicolae-Rares

Error:

Fatal error: Uncaught React\Socket\ConnectionException: Could not bind to tcp://127.0.0.1:8192: An attempt was made to access a socket in a way forbidden by its access permissions. in C:\xampp\htdocs\JesseComposer\vendor\react\socket\src\Server.php:90 Stack trace: #0 C:\xampp\htdocs\JesseComposer\src\BFoxwell\Votifier\Server.php(75): React\Socket\Server->listen('8192', '127.0.0.1') #1 C:\xampp\htdocs\JesseComposer\src\BFoxwell\Votifier\Server.php(54): BFoxwell\Votifier\Server->createSocket(Object(React\EventLoop\StreamSelectLoop), '8192', '127.0.0.1') #2 C:\xampp\htdocs\JesseComposer\src\BFoxwell\Votifier\Votifier.php(73): BFoxwell\Votifier\Server->start() #3 C:\xampp\htdocs\JesseComposer\phpplugins\database_config.php(360): BFoxwell\Votifier\Votifier->run() #4 C:\xampp\htdocs\JesseComposer\servers.php(104): Database->Vote('2', 'ARares') #5 {main} thrown in C:\xampp\htdocs\JesseComposer\vendor\react\socket\src\Server.php on line 90

Code:

            $config = [
                'key' => $VOTIFIER_INFO['Votifier Key'],
                'passphrase' => '', // Optional
                'address' => $VOTIFIER_INFO['Votifier Ip'],
                'port' => $VOTIFIER_INFO['Votifier Port'],
            ];

                $server = new BFoxwell\Votifier\Votifier($config, function($message, $logger)
                {
                    return $message;
                });
                $server->run();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions