Re: How to Create Game Server

I suggest the way you make your program is by having the server scanning for clients. A client then sends it's IP address to the server and the server sends back the IP of another client (And vice versa). Then the two clients with each others IP's can connect to each other.

That is a simple match-making server with little work for the server to avoid draining internet.

Note 1: The client can send more than just IP.
Note 2: Choose an unused port like 11982, something random to avoid traffic (Within Reason).

Re: How to Create Game Server

Re: How to Create Game Server

Posted 25 February 2009 - 07:46 PM

Quote

I have to create a game server using c#. The main role of the Game server will be match maker.

Why must the server be written in C#??

If you need some server-side app to manage matchmaking, I actually recommend PHP, as you are a web-dev. For one of my own projects, I have something similar to a match-server written entirely on PHP that is executed at the command-line, so it just runs in the background and listens for new match messages or match-list requests on a certain port via the sockets extension. In this manner, you eliminate the need for a heavy language in favor of a simple script in a language I would imagine you're fairly familiar with.

Of course, if the server need to do more than make matches or throw stats into a database or some such, then a heavier language is undoubtedly ideal.