And additional observation, if I telnet to the remote port, this also
defaults to the v6 address so it's not just a PHP issue.
-----Original Message-----
From: users-bounces+alex=starfleet-hq.com(a)lists.bitfolk.com
[mailto:users-bounces+alex=starfleet-hq.com@lists.bitfolk.com] On Behalf Of
Alex Monaghan
Sent: 07 September 2010 11:04
To: 'ed'
Cc: users(a)lists.bitfolk.com
Subject: Re: [bitfolk] IPv4/v6 preference
I use the php fsockopen function to initiate communication (I will get round
to re-writing in C at some point when time allows).
I've had to disable IPv6 for the moment as it attempts a v6 connection
rather than v4 by default. Previously the destination didn't resolve to v6
so was not an issue.
Ideally I'd like to have v4 & v6 enabled and select between to allow me to
compare speeds every now and then and decide when to switch to pure v6 comms
for this app.
-----Original Message-----
From: users-bounces+alex=starfleet-hq.com(a)lists.bitfolk.com
[mailto:users-bounces+alex=starfleet-hq.com@lists.bitfolk.com] On Behalf Of
ed
Sent: 07 September 2010 10:35
To: Alex Monaghan
Cc: users(a)lists.bitfolk.com
Subject: Re: [bitfolk] IPv4/v6 preference
On Tue, Sep 07, 2010 at 09:57:27AM +0100, Alex Monaghan wrote:
Can I select a preference between IP versions?
I have an app in PHP which runs from the shell, is it possible to
indicate a preference as to which IP stack is used?
The destination has today enabled IPv6, however, the route via IPv4 is
still a faster route so would like to use IPv4 in preference but do
not wish to simply drop the IPv6 stack as the routing / speed may well
improve over time.
Which side initiates the connection? Tell that side to use hosts file
perhaps?
--
Best regards,
Ed
http://www.s5h.net/
_______________________________________________
users mailing list
users(a)lists.bitfolk.com
https://lists.bitfolk.com/mailman/listinfo/users