esign/laravel-outbound-ip

Discover the outbound IP address of your server

1.1.0 2024-03-12 22:27 UTC

This package is auto-updated.

Last update: 2024-10-12 23:40:56 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

This package provides various ways to discover the outbound IP address of your server.

Installation

You can install the package via composer:

composer require esign/laravel-outbound-ip

Usage

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.

Using a command

To discover the outbound IP address of your server's SSH jail, you may run the following command:

php artisan outbound-ip

Using a route

To discover the outbound IP address of your web server, you may visit the /outbound-ip route.

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.