Socket Error

Dear All,

  I am facing a socket error - Connection Refused on Solaris Server 9. 

Here is the error message
ConnectSock("<servername>", <port>, -3) failed

Recently we upgraded the CC compiler to 5.8 Sun Studio and from that time i am facing this error. Previously we were using CC Compiler 5.3 and it was working fine. I have no clue on the socket programming.

  Any information is appreciated.

Hello ,
check if the server is running on that port no.
also check if the no. of requests has exceeded for the server. aka

listen(cs,n)

where cs->socket descriptor
n->no. of permissible requests to be handled by the server concurrently.
run client through the gdb (whatever debugger the solaris is shipped with and "STEP" through the process)