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

From Custom Mario Kart
< MKWii Network Protocol‎ | Server(Redirected from MS)
Jump to: navigation, 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

Nintendo's Servers for Mario Kart Wii
DNS Name IP Address Port Protocol Description
gamestats.gs.nintendowifi.net
mariokartwii.gamestats.gs.nintendowifi.net
69.10.30.240 29920 N/A These are looked up, but never used.
gamestats2.gs.nintendowifi.net
mariokartwii.gamestats2.gs.nintendowifi.net
69.10.30.234 N/A TCP These are looked up, but never used.
gpcm.gs.nintendowifi.net 69.10.30.242 29900 TCP This connection is used to manage friends and to inform about one's status.
gpsp.gs.nintendowifi.net 69.10.30.241 29901 TCP The server exchanges profile ids into user nicks.
mariokartwii.available.gs.nintendowifi.net
mariokartwii.master.gs.nintendowifi.net
69.10.30.248 27900 UDP See pages
mariokartwii.ms19.gs.nintendowifi.net 69.10.30.247 28910 TCP This server handles database requests for online matchmaking.
mariokartwii.natneg1.gs.nintendowifi.net 69.10.30.254 27901 UDP NAT NEGotiation is a way to bypass NAT and firewalls.
mariokartwii.natneg2.gs.nintendowifi.net 69.10.30.253 27901 UDP NAT NEGotiation is a way to bypass NAT and firewalls.
mariokartwii.natneg3.gs.nintendowifi.net 69.10.30.252 27901 UDP NAT NEGotiation is a way to bypass NAT and firewalls.
mariokartwii.sake.gs.nintendowifi.net 69.10.24.119 443 TCP/HTTP(S) This server handles Mii exchange and Ghost up/downloads
naswii.nintendowifi.net 192.195.204.143
69.25.139.143
443 TCP/HTTP(S) The authority DNS server delivers randomly both IP addresses with a TTL (time to live) of 30s to support a kind of load balancing.
mariokartwii.race.gs.nintendowifi.net 69.10.24.125 443 TCP/HTTP(S) This server is used for time trial / competition leaderboards and the actual competition distribution.

Related Topics