I work mainly with Linux but also with Windows. I have Delphi 12 on Windows and Lazarus on Linux.
I have only tried connecting to TWS with Delphi, and although it does not give errors when I try to connect by telling it the host and port, I cannot connect.
I have not tried it in Lazarus for Linux. Do you have any code?