getIPAddress example

$db      = Database::connect($DBGroup);

            $driver = $db->getPlatform();

            if ($driver === 'MySQLi') {
                $driverName = MySQLiHandler::class;
            } elseif ($driver === 'Postgre') {
                $driverName = PostgreHandler::class;
            }
        }

        $driver = new $driverName($config, AppServices::request()->getIPAddress());
        $driver->setLogger($logger);

        $session = new Session($driver$config);
        $session->setLogger($logger);

        if (session_status() === PHP_SESSION_NONE) {
            $session->start();
        }

        return $session;
    }

    
<?= esc($request->getUri()) ?></td> </tr> <tr> <td>HTTP Method</td> <td><?= esc(strtoupper($request->getMethod())) ?></td> </tr> <tr> <td>IP Address</td> <td><?= esc($request->getIPAddress()) ?></td> </tr> <tr> <td style="width: 10em">Is AJAX Request?</td> <td><?= $request->isAJAX() ? 'yes' : 'no' ?></td> </tr> <tr> <td>Is CLI Request?</td> <td><?= $request->isCLI() ? 'yes' : 'no' ?></td> </tr> <tr> <td>Is Secure Request?</td> <td>
Home | Imprint | This part of the site doesn't use cookies.