If you have TeamSite or Search installed on separate servers, you are required to make configuration changes on both servers, so that they communicate with each other.
On the TeamSite Server:
Browse to iw-home/cssdk/cssdk.cfg. Edit the following entries (near the bottom of the file) according to your Search Server
search.server.host: <Search Server Hostname>
search.server.port: 6720
On the TeamSite Search Server:
Browse to search-home/etc/search.properties. Edit the following entries according to your TeamSite Server
iw.teamsite.server.host=<TeamSite Server Hostname>
java.naming.provider.url=tcp://< TeamSite Server Hostname>:3035/
iw.index.agent.idxdir=C:/iw-index
iw.search.agent.idxdir=C:/iw-index