Hi Burkhard,
Am Freitag, 18. Juli 2008 18:04 schrieb Cesar Romero:
I wrote a appserver with fpc +Indy, all works just fine in OpenSuse
11, but when I install in a Fedora box (I tried Fedora 7, 8 and 9) it
just dont run and raises the exception:
An unhandled exception occurred at $08159DC9 : EIdCouldNotBindSocket
: Could not bind socket. Address and port are already in use.
$08159DC9 $0817CC21 $0817D404 $0817C8F5 $0806610D $08065D43 $08064228
$08048F7B "EIdSocketError : Socket Error # 98"
Im using a custom port number and Im sure that it is not in use, does
anyone know if I should install custom packages in Fedora to have
this working?
IIRC, this is a bug which shows only on systems having IPv6 support
enabled. Make sure to add a IPv4 binding to your server, otherwise it
tries to start listening socket for IPv4 and IPv6, which fails (or
something like that; can't remember the exact details ..). However,
following code solved my problems:
MyServer:=TIdTCPServer.create;
MyServer.DefaultPort:=8099;
MyServer.bindings.add.IPVersion:=Id_IPv4;
I figured out that this weekend binding did the trick
MyServer.bindings.add.IPVersion:=Id_IPv4;
Thank you, for the reply.
Best regards,
--
Cesar Romero
http://blogs.liws.com.br/cesar
http://blogs.liws.com.br/cesar/?feed=rss2
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal