Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6076843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:39:14+00:00 2026-05-23T10:39:14+00:00

I have a C++ application that currently uses a simple TCP/IP client/server model to

  • 0

I have a C++ application that currently uses a simple TCP/IP client/server model to communicate between 2 instances of itself. This works fine on a local network, but I would like this to be used across an external network. Currently, maybe due to firewall issues, it is not able to connect across an external network.

I am not an expert on networking, but I was thinking about having a dedicated server in the middle acting as a hub for communications. Will this mitigate firewall issues?

How do networked games communicate with each other? Is there usually a server in the middle or is it peer-to-peer?

In any case, I’d appreciate any advice on protocols and infrastructure to implement a network enabled application.

Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:39:15+00:00Added an answer on May 23, 2026 at 10:39 am

    The bane of modern internet communications is NAT. Due to NAT (which shouldn’t be confused with a simple firewall) a large portion of hosts on the internet don’t have a public address and thus can’t (easily) accept incoming connections. NAT breaks the internet so badly that people are moving to a totally different scheme, with slightly different semantics, just to get rid of it.

    There are basically two class of solutions

    • NAT traversal which is sometimes used for peer-to-peer communication. Usually NAT traversal schemes require some publicly accessible server for brokering the initial connection, but the actual communication is done peer-to-peer

    • Client-server communication. This is easier (since the server generally should have a publicly accessible address) but also kind of inefficient. For instance, say you’ve got a peer on the same 10Gb LAN. If you want to send him a file through the server (which happens to be in another country) it’s going to take ages instead of seconds.

    I’m not sure which one is “generally used”. But think of it this way:

    • If there is the logical need for a “controller” (say 8 people are playing a strategy game) then you probably need a server
    • If any two peers can logically interact without a “controller”, you probably want peer-to-peer communication
    • If you need to transfer LOTS of data fast (file transfer), you almost surely want p2p.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a relatively simple program that currently uses 1 thread (main). The application
I have a web application that can load plugins through reflection. It currently uses
Currently, I have an application that uses Firebird in embedded mode to connect to
I have an application that is currently running against a 32-bit SQL Server 2005
I currently have a Palm WebOS application that uses an Ajax.Request to connect to
I have an ASP.NET MVC application that currently uses the WebClient class to make
I have a web application that I am currently working on that uses a
I have a Grails application that uses ThreadLocal. Currently ThreadLocal populating and clearing is
I have a simple php application that uses, among others, an hourly updated external
We have an application that currently supports Oracle and SQL Server databases. We're in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.