Client-Server connection over internet with both client and server behind a router
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Client-Server connection over internet with both client and server behind a router

  1. #1
    Join Date
    Jul 2009
    Posts
    58

    Client-Server connection over internet with both client and server behind a router

    I'm attempting to establish a connection between two computers over the internet using winsocket2 library. Both the client and the server are behind a router.

    What do I need for the connection to succeed? do both the client and server need to use port-forwarding?


    EDIT:
    To be more specific, I want to use the following codes for the server and client from MSDN:
    Client: http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
    Server: http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
    Last edited by MoHammaD_93; August 27th, 2014 at 08:46 AM.

  2. #2
    Join Date
    Jul 2009
    Posts
    58

    Re: Client-Server connection over internet with both client and server behind a route

    People! I need help.
    Could somebody knowledgeable in this subject help by discussing the issue actively on e.g. skype or any messenger? I'd really appreciate that.

  3. #3
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    5,881

    Re: Client-Server connection over internet with both client and server behind a route

    What port are you using? What IP address are you using? Have the router/firewalls been configured to allow access for this port to/from the used IP address? How are you specifying the names/addresses of the computers to use?
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2017 (15.5.1)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)