These are chat archives for IndySockets/Indy

19th
Oct 2017
DelphiWorlds
@DelphiWorlds
Oct 19 2017 03:24
I decided to revisit IPv6... at least on the server side - my problem now is that attempting to use a specific IPv6 address results in "Could not bind socket. Address and port are already in use"
works ok for IPv4 addresses
this is for OSX.. works OK on Windows
even tried a plain TIdTCPClient as well
Remy Lebeau
@rlebeau
Oct 19 2017 15:30
@DelphiWorlds do you have an IPv4 binding on the same port as an IPv6 binding? On some Nix platfoms, like Linux and Android (not sure about OSX), that will not work (and Indy checks for that in TIdCustomTCPServer and TIdUDPServer when creating implicit bindings), especially when using wildcard IPs. But it works OK in Windows.
DelphiWorlds
@DelphiWorlds
Oct 19 2017 20:36
I tried it without any IPv4 bindings at all
..and this is binding to specific IP addresses
Remy Lebeau
@rlebeau
Oct 19 2017 20:57
@DelphiWorlds on OSX, did you run netstat or lsof/grep to see what IPs/ports are actually in use?
DelphiWorlds
@DelphiWorlds
Oct 19 2017 21:01
yes, the ports are not in use
the "any" address works, but that does not help me, since the data is not sent via all addresses
Remy Lebeau
@rlebeau
Oct 19 2017 21:04
@DelphiWorlds "Address and port are already in use" is pretty self-explanatory. The OS clearly thinks the port is in use somewhere.
DelphiWorlds
@DelphiWorlds
Oct 19 2017 22:11
must be hiding that fact
Remy Lebeau
@rlebeau
Oct 19 2017 22:48
@DelphiWorlds which port are you trying to bind to?
DelphiWorlds
@DelphiWorlds
Oct 19 2017 22:50
doesn't seem to matter which one.. I've tried 8081, 8189, 2020.. etc etc
Kudzu
@czhower
Oct 19 2017 22:51
could be a firewall or ipsec
DelphiWorlds
@DelphiWorlds
Oct 19 2017 22:51
the firewall only blocks those ports for IPv6 but not IPv4?
the firewall is off, so I'm guessing it is not that
Remy Lebeau
@rlebeau
Oct 19 2017 22:57
@DelphiWorlds just making sure it wasn't a reserved port (< 1024) that *Nix blocks access to but Windows does not
DelphiWorlds
@DelphiWorlds
Oct 19 2017 22:57
understood