Like Tree1Likes
  • 1 Post By Elysia

the client\server application

This is a discussion on the client\server application within the C++ Programming forums, part of the General Programming Boards category; hello all i just wrote an application for a simple chat between a server and client using c++ and winsock ...

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    3

    the client\server application

    hello all
    i just wrote an application for a simple chat between a server and client using c++ and winsock ,but the problem is when the server is in state of listening the client sends a message...after 15 seconds it says that the connection is not possible,im using an ip adress via internet ,and not local ip adress by another word im trying to communicate by a web network and not by a local network,is that some thing do with router? u have to know that i checked all the firewall configuration from both sides....so any one can suggest me a solution?
    thx in advance

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Have you tested it with a local ip address? Are you sure it's the internet/firewall configuration or could it be a problem the the application itself?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,594
    Is the IP address reachable? Did you try pinging it? If it doesn't work (and you HAVE tried local ip), then wireshark may be a good tool to check if the remote computer gets the connection request or not. If it doesn't, it may be a firewall or a router issue.
    Salem likes this.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Registered User
    Join Date
    Oct 2012
    Posts
    3
    hi
    i didn't test it on a local adress ip that's what i will do..then i will give you the up dates..
    thx

  5. #5
    Registered User
    Join Date
    Oct 2012
    Posts
    3
    ok i'm going to try all of this then i will let you about updates ,by this way can you please give me a useful link or a book WINSOCK tutorial , i looked but i didn't find any thing interesting
    thx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Birdiection Communication channel between Linux client and server application
    By chouhan.raj1978 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-16-2011, 07:22 AM
  2. Client-server application for hybrid file transfer
    By ejjjjj in forum C Programming
    Replies: 6
    Last Post: 05-16-2010, 02:27 PM
  3. Win32 Server\Client Application
    By IndioDoido in forum Windows Programming
    Replies: 7
    Last Post: 11-09-2008, 04:00 PM
  4. server client application - (i really need your help)
    By sarahnetworking in forum C Programming
    Replies: 3
    Last Post: 03-01-2008, 09:54 PM
  5. Client application having problem receiving from server side?
    By dp_76 in forum Networking/Device Communication
    Replies: 2
    Last Post: 08-04-2005, 02:58 PM

Tags for this Thread


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