Re: Bind IP with fsockopen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/7/07, chris@xxxxxxxxxxxx <chris@xxxxxxxxxxxx> wrote:
Hi is it possible to socket_bind with fsockopen? im using this with all my scripts...

$fs = fsockopen('example.com', 2043, $errno, $errstr, 60);
if (!$fs) {
fclose($fs);

and I need the remote conection to see me as one of my other IP's

Ive read through socket_bind
http://uk.php.net/manual/en/function.socket-bind.php

but cant see how to use it with my above code

Thanks

I'm not sure if it's possible, it depends on the setup of switches
etc. You're remote connection is outside your LAN right? If so, then
your IP address is assigned by your ISP, this is assigned for each
connection. I guess you have more then one connection from your ISP,
then you have more then one IP. So if you have more then one
connection, you have more then one modem/router. So if you want to use
the IP of another connection, you should connect through another
router/modem. But this depends on your setup, and has nothing to do
with PHP.

Tijnema


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux