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

    Post 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?

  2. #2
    Join Date
    May 2012
    Posts
    136
    Thanks
    2
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

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

    Do you have a server running at the port?
    try telneting to the port and see what the result is

Similar Threads

  1. 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
  2. Replies: 1
    Last Post: 17th July 2010, 12:02
  3. bad mySQL host freezes app on connection
    By Frozenjim in forum Qt Programming
    Replies: 4
    Last Post: 13th October 2008, 07:39
  4. Replies: 3
    Last Post: 22nd June 2006, 16:27

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.