Results 1 to 2 of 2

Thread: when trying to connect to local host getting connection refused error msg.

  1. #1
    Join Date
    Feb 2012
    Posts
    44
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default when trying to connect to local host getting connection refused error msg.

    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.....

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: when trying to connect to local host getting connection refused error msg.

    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?

Similar Threads

  1. Replies: 1
    Last Post: 3rd August 2012, 11:32
  2. Http request doesn't respond when the host is local
    By dineshkumar in forum Qt Programming
    Replies: 1
    Last Post: 3rd February 2011, 13:09
  3. Replies: 1
    Last Post: 17th July 2010, 12:02
  4. bad mySQL host freezes app on connection
    By Frozenjim in forum Qt Programming
    Replies: 4
    Last Post: 13th October 2008, 07:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.