NS-ctest-mock

This homebrew project is a minimal mock of Nintendo's connection-test server, which is used by the Nintendo Switch to verify that it can reach Nintendo's servers.
Usage
Set up a DNS MITM to redirect connection-test requests to the loopback:
If you want to block all nintendo servers, you can also just set:
Then unpack NS-ctest-mock.tar from the latest release to your SD card. Now you are good to go!
The sysmodule will automatically start on boot and listen for connection-test requests. You can stop and restart it with any Hekate-Toolbox-compatible sysmodule manager.
Technical Details
After startup, it listens on 127.0.0.1:80 and returns no matter what request is made:
Build
devkitpro/devkita64 Docker Image is suggested for building this project. Additionally, you will need to install clang-format if you want to run the formatting check.
Artifacts will be placed in the atmosphere folder.
Maintainer
@qwertycxz
How could I contribute?
Issues and Pull-requests are both welcomed.
License
Apache 2.0 © qwertycxz
This homebrew project is a minimal mock of Nintendo's connection-test server, which is used by the Nintendo Switch to verify that it can reach Nintendo's servers.
Usage
Set up a DNS MITM to redirect connection-test requests to the loopback:
Code:
# files under /atmosphere/hosts
127.0.0.1 *conntest.nintendowifi.net
127.0.0.1 *ctest.cdn.nintendo.net
If you want to block all nintendo servers, you can also just set:
Code:
# files under /atmosphere/hosts
127.0.0.1 *nintendo*
Then unpack NS-ctest-mock.tar from the latest release to your SD card. Now you are good to go!
The sysmodule will automatically start on boot and listen for connection-test requests. You can stop and restart it with any Hekate-Toolbox-compatible sysmodule manager.
Technical Details
After startup, it listens on 127.0.0.1:80 and returns no matter what request is made:
HTTP:
HTTP/1.0 200 OK
Content-Length: 2
X-Organization: Nintendo
ok
Build
devkitpro/devkita64 Docker Image is suggested for building this project. Additionally, you will need to install clang-format if you want to run the formatting check.
Code:
# Build the project
make
# Remove the build artifacts
make clean
# Run the formatting fix
make format
# Run linting checks
make lint
# Run the formatting check
make format.check
# Run linting fixes
make lint.fix
Artifacts will be placed in the atmosphere folder.
Maintainer
@qwertycxz
How could I contribute?
Issues and Pull-requests are both welcomed.
License
Apache 2.0 © qwertycxz
- Change log
- Initial release.