Network Protocol/Server/GAME.msNUM.gs.nintendowifi.net

From Custom Mario Kart
Jump to navigation Jump to search

There exists a large set of domains following the name scheme <GAME>.ms<NUMBER>.gs.nintendowifi.net. All domains point to the same server. Mario Kart Wii uses mariokartwii.ms19.gs.nintendowifi.net.

The server listen at TCP port 28910 and accepts database queries to handle the matchmaking in global and continental races. The server is also used room races to check if the profile is already connected to WFC.



General Description

This server is used for continental and global races in MKWii.

Games, users and keywords

Data members

Request send by the clients

Responses send by the server

Encoding and Decoding

Server number

The server number (for MKWii it's 19) can be calculated with this code. The needed parameter is the game name string ("mariokartwii").

int main(int argc, char **argv)
{
	int i = 0;
	unsigned int server = 0;

	for(i = 0; i < strlen(argv[1]); i++)
	{
		unsigned char c = tolower(argv[1][i]);
		server = c - (server * 0x63306ce7);
	}
	server %= 20;

	printf("%s.ms%d.nintendowifi.net", argv[1], server);

	return 0;
}

Other Servers

Template:MKWii Servers

Related Topics

Template:MKWii Network Protocol