Thanks JD, very usefull answer
Now i get this error
unit2.pas(48,12) Error: identifier idents no member "AddLocalAddressesToList"
In other hand, i know i can handle all errors here
procedure TForm2.TCPServerException(AContext: TIdContext; AException: Exception);
begin
{if Aexception = EIDSocketError then halt(0); }
end;
But i dont know how exactly
One clear example could be very helpfull
EDIT: I just realized that the app need know if the port is redirected to start working as a server
EDIT2: If you are a master in lazarus+indy+ssl protocol, feel free to PM me so we can talk via skype
EDIT3 Looking Inet library to see if it could work better for me.
EDIT 4 I Installed Inet. Looks like this library contains all i need
I will keep you info as im using testnet example as a guide