Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.36 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.36 KB

Discover the outbound IP address of your server

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.