Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove need for changing DNS settings. #45

Closed
SMTDDR opened this issue Jun 29, 2014 · 19 comments
Closed

Remove need for changing DNS settings. #45

SMTDDR opened this issue Jun 29, 2014 · 19 comments

Comments

@SMTDDR
Copy link
Contributor

SMTDDR commented Jun 29, 2014

It would be nice if you created a domain name the same string length as "nintendowifi.net" that will point to your server and be accepted by your apache config when it sees that host in the Request's Host header; doing the same thing it would have if the host said "nintendowifi.net". I could make a Riivolution patch that replaced all "nintendowifi.net" with "ramen.altwfc.net" and thus people won't need to change their DNS settings. They'll just start riivolution and I'd provide a patch called "Use altwfc servers".

Background

http://forum.wii-homebrew.com/board42-kreativitaet/board329-mkw-server-project-english/51700-multi-game-support/index18.html#post6001481
TL,DR - Make the subdomains ".ramen.altwfc.net"(same string length as "nintendowifi.net") point to altwfc's IPaddress and Hostname ".ramen.altwfc.net" be accepted on your apache config the same way "nintendowifi.net" currently is.

Right now, this is what I see:

pikachu@BATTLEGYM ~ $ nc -v 75.127.5.215 80
Connection to 75.127.5.215 80 port [tcp/http] succeeded!
POST /ac HTTP/1.1
User-Agent: RVL SDK/1.0
Host: ramen.altwfc.net
HTTP_X_GAMECD: STKE
Content-Type: application/x-www-form-urlencoded
Content-Length: 309

action=bG9naW4%2A&gsbrcd=U1RLSjBsbzRjOXI%2A&userid=MTYwODEzMjkwNjg4Mw%2A%2A&ingamesn=AFMATQBUAEAARABEAFIAIAAg&sdkver=MDAxMDAw&gamecd=U1RLRQ%2A%2A&makercd=MDg%2A&unitcd=MQ%2A%2A&macadr=MDAxN2FiNDQ3N2M5&lang=MDE%2A&devtime=MTExMDE1MDgyOTQ4&csnum=TFUxMDM0MjE4ODc%2A&cfc=NjIzNjM1OTUzNTYxNTg5MQ%2A%2A&region=MDE%2A


HTTP/1.1 404 Not Found
Date: Sun, 29 Jun 2014 16:55:13 GMT
Server: Apache/2.2.22 (Debian)
Vary: Accept-Encoding
Content-Length: 282
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /ac was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Debian) Server at ramen.altwfc.net Port 80</address>
</body></html>
@mm201
Copy link

mm201 commented Jul 3, 2014

Anything that makes accessing the server easier is good in my books. Especially since this is just an Apache configuration, it should be trivial to add.

Keep in mind that some games have their own servers located on non- nintendowifi.net domains, and would require their own special patches for this to work.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 5, 2014

@mm201

Really? ugh, I want one riivolution patch that resolves this completely. Could you give me an example of URLs of any game that talks to servers not ending in "gs.nintendowifi.net"?

@mm201
Copy link

mm201 commented Jul 5, 2014

Pokémon Platinum and onward communicate with pkgdsprod.nintendo.co.jp for Global Terminal things (battle videos and some gimmicks). Pokémon Black/White and onward communicate with pkvldtprod.nintendo.co.jp for anti-cheat. They also communicate with one of several subdomains at pokemon-gl.com for Game Sync. (The subdomain depends on the language of the game.)

@ghost
Copy link

ghost commented Jul 5, 2014

yes,because every server have a different communication,like in black & white,use the pkvldtprod for anti cheat,but nobody likes that

@mm201
Copy link

mm201 commented Jul 5, 2014

It doesn't matter if you like it. The game hangs and returns an error message if there's no response from the server.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 6, 2014

@mm201
Ah, so just 2 domains? nintendowifi.net and nintendo.co.jp that you know of?

@mm201
Copy link

mm201 commented Jul 6, 2014

There's a third one in there, pokemon-gl.com.
Also, it's only Pokémon I've been researching. Other games could be using anything.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 7, 2014

@mm201

(╯°□°)╯︵ ┻┻

I wanted a generic riivolution patch. The info you have given me makes it clear that each game may end up needing its own specific changes. Closing this github issue, a *.ramen.altwfc.net domain resolve isn't going to accomplish what I hoped.

@SMTDDR SMTDDR closed this as completed Jul 7, 2014
@mm201
Copy link

mm201 commented Jul 7, 2014

There's no reason you can't make a patch that works for the generic games without special servers. I don't even know which (if any) Wii games use special servers. A general purpose patch could still work 99% of the time.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 7, 2014

@mm201 ....oh...these servers you've mentioned are only for Nintendo's handheld systems that you know of? I'm hoping all WII games stick with "gs.nintendowifi.net".

@SMTDDR SMTDDR reopened this Jul 7, 2014
@mm201
Copy link

mm201 commented Jul 7, 2014

See the compatability list for a list of games which are working with only basic *.nintendowifi.net connectivity.

Requiring DNS or a custom patch for a small subset of games isn't that big a problem.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 7, 2014

@mm201
Interesting. I guess that makes sense, all those games are working when pointed to altwfc's DNS which only redirects nintendowifi.net requests afaik. I sure would like to see the network captures of the games that don't work on that list.

@mm201
Copy link

mm201 commented Jul 7, 2014

The thing is, there are several different reasons a game might fail. Requiring a custom server is only one of them. They might require a custom gamestats server (custom, but hosted under nintendowifi.net), or use unimplemented parts of the Gamespy protocol.

Edit: And altwfc is redirecting pkvldtprod.nintendo.co.jp requests to my server.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 7, 2014

@mm201
True... but still curious to see if any of them is a simple'ish fix.

Edit: And yeah, I forgot that altwfc deals with more than just WII games.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 8, 2014

Excellent,

pi@raspberrypi ~ $ ping ramen.altwfc.net
PING ramen.altwfc.net (75.127.5.215) 56(84) bytes of data.
64 bytes from host.colocrossing.com (75.127.5.215): icmp_req=1 ttl=53 time=218 ms
64 bytes from host.colocrossing.com (75.127.5.215): icmp_req=2 ttl=53 time=126 ms
64 bytes from host.colocrossing.com (75.127.5.215): icmp_req=3 ttl=53 time=132 ms
^C
--- ramen.altwfc.net ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2014ms
rtt min/avg/max/mdev = 126.031/158.931/218.175/41.978 ms

Looks like *.altwfc.net points to your custom server, this is good enough for now to experiment making a riivolution patch that'll replace "nintendowifi.net" with "ramen.altwfc.net". The only catch now is the fact that the game will set the request header as Host: ramen.altwfc.net, which will result in a 404 response from your system because you're expecting naswii.nintendowifi.net but I'll have a proxy setup such that the riivolution patch will replace https://naswii.nintendowifi.net with http://altwfc.ramen.dontrush.me so I can get all the requests, change the header and send them to altwfc's server.

All the non-naswii requests, I can patch .gs.nintendowifi.net into .japan.gs.altwfc.net ...same length string.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Jul 10, 2014

Okay, riivolution patch works... I can get online without changing my DNS settings.

https://www.cloudshark.org/captures/d638a18f5333

The only catch is altwfc's apache rejection of naswii.ramen.altwfc.net as a valid host request headers. If that was fixed, then there would be no need of my custom server to rewrite that request.

@SMTDDR
Copy link
Contributor Author

SMTDDR commented Aug 28, 2014

I guess this won't be happening

@SMTDDR SMTDDR closed this as completed Aug 28, 2014
@kyle95wm
Copy link
Contributor

It's sad really, I was really hoping we could have something like this

@mm201
Copy link

mm201 commented Dec 14, 2014

It's easy to add, you just need to kick the right person. Probably Nagato or Eearslya.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants