What may be wrong with connection?

This is a discussion on What may be wrong with connection? within the C++ Programming forums, part of the General Programming Boards category; Hi, Breekan again. I finished my chat program. It will not only log your chats if you want but it ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    155

    What may be wrong with connection?

    Hi, Breekan again. I finished my chat program. It will not only log your chats if you want but it can pass screenames you choose as well. There are still a few *minor* bugs but I must ask this:

    Why is it, that even with the correct IP/hostname, there is no connection? Sometimes it can resolve the address and other times it cannot. It bothers me that most of the time it won't find the address/IP/etc. However, running the program twice and connecting to your own IP works (chat with yourself? hah).

    However, if anyone is willing, would they be able to explain why this is? What further must I add to get my program to CONNECT?

  2. #2
    UNBANNED OneStiffRod's Avatar
    Join Date
    Jan 2002
    Posts
    669
    are you using port numbers???
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    155
    Yes

    const int PORT = 3163;

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    What are you passing to FindHost? Leave out the "http:\\". And more specifically, describe exactly what is happening. When does it find the host, and when not?
    Code:
    #include <ip.hpp>

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    155
    I don't know...

    I sent you an Email with a link to my program if you would like to see how it works

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    155
    Did you get my Email?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OLEDB Connection String to Excel
    By gozlan in forum C# Programming
    Replies: 4
    Last Post: 07-06-2003, 01:42 PM
  2. Determining status of a network connection?
    By Cat in forum Windows Programming
    Replies: 0
    Last Post: 06-04-2003, 05:30 PM
  3. broadband connection problem
    By Shadow in forum Tech Board
    Replies: 9
    Last Post: 03-28-2003, 04:27 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21