Forum Moderators: coopster

Message Too Old, No Replies

fsockopen - bind to IP?

         

MrManager

9:26 pm on Apr 22, 2007 (gmt 0)

10+ Year Member



Is there a way to tell fsockopen() to bind to a certain IP?

mcavic

12:53 am on Apr 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not that I know of. I'm not sure, but I think the kernel always chooses the source IP for an outbound connection based on the routing table.

If you mean bind to a specific IP to accept inbound connections, then yes PHP can, but that's not fsockopen().

MrManager

4:46 pm on Apr 23, 2007 (gmt 0)

10+ Year Member



Any idea how I could do that, then? Is there an alternate function that allows for something like this?