if (addr = '::') and (origaddr = '') and (fdhandlein < 0) then begin\r
{writeln('failed to create an IPV6 socket with error ',socketerror,'. trying to create an IPV4 one instead');}\r
addr := '0.0.0.0';\r
+ biniptemp := ipstrtobinf(addr);\r
fdhandlein := socket(PF_INET,socktype,0);\r
end;\r
{$endif}\r