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

  • Home
  • SEARCH
  • 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 6827957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:19:36+00:00 2026-05-26T22:19:36+00:00

I have a turn-based game in which two players may play against each others.

  • 0

I have a turn-based game in which two players may play against each others.

It’s written in C# and uses XNA 4.0.

Currently multiplayer is implemented with TCP/IP. It works pretty nicely, but only if the players are within the same network and one of them knows the IP of the other.

So the question is: How should I implemented the online play for this game? Is TCP a reasonable method for connecting two random players from the opposite sides of the world without them having to deal with IP addresses and ports(or any other such technical details)?

To make this problem more challenging, I have no server for hosting the game matching service. (Well, I have an access to a virtual web server which I could use for sharing the IPs.)

To list questions:

  • Does .NET offer better choice of communication method than TCP?
  • What would be the best way to deal with NATs in my case?
  • Is there a cheap way of getting my own server and run the TCP game matching service there?
  • 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-26T22:19:37+00:00Added an answer on May 26, 2026 at 10:19 pm

    TCP vs UDP.

    TCP is a bit slower than UDP but more failsafe.

    Since your game is turn based it will probably send minimal amounts of data between the client and server and it is not really latency dependant, I would say you might aswell go for TCP.

    To make this problem more challenging, I have no server for hosting the game matching service. (Well, I have an access to a virtual web server which I could use for sharing the IPs.)

    If you are going to provide your players with a server browser or similar you will need to have a centralized server, a web server with a script/application built for this would do just fine.

    • Is there a cheap way of getting my own server and run the TCP game matching service there?

    A web server or similar host would do just fine and is usually cheap, what you want is:

    • Function for a server to add itself to the server list.
    • Function for a client to retrieve the servers on the list.

    Doing web requests with C# is no problem at all, the requests could look something like:

    http://www.example.com/addToServerList.php?name=MyEpicServer&ip=213.0.0.ABC (adds this server to the list)

    http://www.example.com/getOnlineServers.php (returns list of all the servers)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a 2-player, iOS turn-based game that uses the game center and GKTurnbasedMatch.
I have a square grid, for a turn based game ( grid is similar
I've got a medium scale project (a turn-based game) that's currently written in C/C++.
i have a very simple turn-based online game in java. the client talks to
Just to play around a little, I'm trying to make a turn-based battle game
Is it possible and reliable to have functionality like Start a turn based game
I have a class B which inherits from A which in turn derives from
I have a list of objects which I want to turn into a set.
I have a CGContext, which I can turn into an NSGraphicsContext. I have an
I am writing a game server for a turn-based game in Java. These are

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.