This package provides various ways to discover the outbound IP address of your server.
You can install the package via composer:
composer require esign/laravel-outbound-ip
This package ships with both a command and a route to discover the outbound IP address of your server. These different strategies prove useful in scenarios where your server utilizes different IP addresses for outgoing requests originating from SSH versus those from the web server.
To discover the outbound IP address of your server's SSH jail, you may run the following command:
php artisan outbound-ip
To discover the outbound IP address of your web server, you may visit the /outbound-ip
route.
composer test
The MIT License (MIT). Please see License File for more information.