curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #974 Error binding to ipv4 interface when target has ipv4+ipv6

From: fiderallalla <>
Date: Tue, 11 Feb 2014 18:38:49 +0000

Looks like this is fixed in recent curl versions.

I guess this commit did it: 090b55c100be4364ac035b5a1b7440cf94e71904 / bug 1189

** [bugs:#974] Error binding to ipv4 interface when target has ipv4+ipv6**
**Status:** closed-later
**Created:** Mon Nov 08, 2010 04:13 AM UTC by fiderallalla
**Last Updated:** Fri Jun 21, 2013 01:43 PM UTC
**Owner:** nobody
Let's assume there are two interfaces:
eth0: ipv4 AND ipv6: / 2001:.....
eth1: only ipv4:
curl --interface <host>
fails when <host> has both ipv6 and ipv4 adresses:
curl: \(45\) bind failed with errno 22: Invalid argument
To prevent that, one has to manually specify --ipv4 / -4,
In my opinion this should be implied, since we are binding to an ipv4-only interface and it makes no sense preferring ipv6 over ipv4.
Sent from because is subscribed to
To unsubscribe from further messages, a project admin can change settings at  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-02-11

These mail archives are generated by hypermail.

donate! Page updated December 29, 2013.
web site info

File upload with ASP.NET