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

Enable IPv6 for reporting / sharing / etc. #11004

Merged
merged 3 commits into from
Jun 6, 2018

Conversation

unknownbrackets
Copy link
Collaborator

There's some (slight) risk a client may be on a network where ipv6 doesn't properly work, but is available. This should try ipv4 even in that case, but I haven't tested it on such a network.

There's two reasons to go for ipv6:

  1. The public IP is used to match devices in the same network. Now that report.ppsspp.org is ipv6, this is required for matching to work from an ipv6 client (e.g. a web browser, lua script, etc. for WebSocket based debugger interface #10909.)

  2. We shouldn't be "part of the problem" for ipv4, as slight as our contribution to that is. Now version.json, homebrew downloads, etc. route via ipv6.

Should wait for post-1.6.1 or whatever. Tested this on Android/Windows/Mac, it both connects and listens properly there.

-[Unknown]

@unknownbrackets unknownbrackets added this to the v1.7.0 milestone May 6, 2018
@unknownbrackets
Copy link
Collaborator Author

unknownbrackets commented May 6, 2018

Oh @hrydgard when the dust settles for 1.6.x can you try this on one of those older devices? I'm worried it might not load the dll properly prior to Android 4.x, almost forgot.

If so... I guess that means a ppsspp_net so? Eventually sceNet should probably move to ipv6 too...

-[Unknown]

@hrydgard
Copy link
Owner

For what it's worth, this starts up and talks to the PPSSPP Homebrew Store just fine on both Nexus One and Sony Xperia Play, both on Android 2.3.

@unknownbrackets
Copy link
Collaborator Author

Thanks for checking - I was worried something wouldn't link.

-[Unknown]

We try to connect() to both, so should still be safe in environments where
ipv6 is broken.
Let's hope no platform has issues with inet_ntop...
Hurray, no longer "part of the problem" for ipv4.
@hrydgard hrydgard merged commit a08fb8b into hrydgard:master Jun 6, 2018
@unknownbrackets unknownbrackets deleted the ipv6 branch June 6, 2018 19:29
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

Successfully merging this pull request may close these issues.

3 participants