PDA

View Full Version : when trying to connect to local host getting connection refused error msg.



narlapavan
3rd August 2012, 07:32
i am trying to connect to host in this way
tcpSocket.connectToHost(QHostAddress::LocalHost,61 78)

but its throwing error message as connection refused .. why?

i already posted this thread but no one replied plz help me.....

ChrisW67
3rd August 2012, 09:50
There's nothing listening on port 6178 on the loopback interface would be a good guess. Have you bothered to look at the error() and errorString() values?