socket_bind

PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8
socket_bind - Binds a name to a socket
Manual
Code Examples

Example #1 Using socket_bind to set the source address

PHP Version: