If you downloaded Eclipse TPTP and installed it in your Ubuntu (in my case tptp 4.5.1 and Ubuntu 8.04) and every time you try to profile an application you get:
IWAT0435E An error occurred when connecting to the host
The reason for this error is detailed in this bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=240677): the Agent Controller is linked against an old version of libstdc. When you activate the logs you can see the following error:
ACServer: error while loading shared libraries: libstdc++-libc6.2-2.so.3:
cannot open shared object file: No such file or directory
So let's fix this.
Download the libstdc debian package (copy and paste this carefully, the entire URL doesn't appear in the screen):
Then install the package:
sudo dpkg --install libstdc++2.10-glibc2.2_2.95.4-22_i386.deb
Or if you are running on 64 bits:
sudo dpkg --force-architecture --install libstdc++2.10-glibc2.2_2.95.4-22_i386.deb
Try again and you should be able to profile your applications without any problem.