Welcome to WebmasterWorld Guest from 34.204.176.189

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

fsockopen - bind to IP?

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

New User

10+ Year Member

joined:Mar 12, 2007
posts:26
votes: 0


Is there a way to tell fsockopen() to bind to a certain IP?
12:53 am on Apr 23, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 31, 2003
posts:1316
votes: 0


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().

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

New User

10+ Year Member

joined:Mar 12, 2007
posts:26
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members