# fsockopen outgoing ip [patch]

- Thread: https://externals.io/message/20025
- Original archive: https://news-web.php.net/php.internals/20025
- Started by Tomas Simonaitis on 2005-11-15T18:16:45+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #20025 — Tomas Simonaitis — 2005-11-15T18:16:45+00:00

URL: https://externals.io/message/20025#20025

I've added outgoing IP selection to fsockopen function.
It's usefull if host has multiple IPs (NICs) to pick specific one instead of 
default.
Same functionality is kept if outgoing IP isn't specified.

Patch is against 4.4.1.

Maybe it would be appropriate to include this feature?
