Views: 6,702,803 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 03-29-24 09:48 AM
Guest:

0 users reading Tutorial: How to Connect to WFC in MelonDS (Updated 23/09/2023) | 1 bot

Main - General - Tutorial: How to Connect to WFC in MelonDS (Updated 23/09/2023) Hide post layouts | New reply

Pages: 1 2 3 4 5 6 7
Wifall
Posted on 01-29-20 08:11 PM (rev. 42 of 10-10-23 03:03 AM) Link | #1462
Updated (23/09/2023) with error codes and possible solutions.

This brief tutorial will (hopefully) teach you how to connect to the alternate WFC servers using the melonDS emulator.
If you already connected previously to the official WFC or an alternate one, you'll have to do the Extra Step first.
If you want to local multiplayer between two instances, follow this tutorial here

1st step: Make sure MelonDS is on the latest version.
- On Windows make sure both MelonDS and the rom file and save are placed in a UAC free directory (desktop, drive root, etc.) Otherwise, right-click on MelonDS and go to proprieties, then go to the compatibility tab and check on the "execute this program as administrator" box, and click ok.
- On Linux, make sure both MelonDS and the rom file and save are placed in a non-restricted directory.
Both can be downloaded here https://melonds.kuribo64.net/downloads.php
- On Android, you can either use the standalone melonDS app (from GitHub, the Play Store one is outdated and will not work) or melonDS DS Retroach core.
You can download either on the most recent versions from GitHub or download here:
melonDS android standalone: here
melonDS DS Retroarch core: here

2nd step: Now boot up your game, select the WFC Settings option (where it's located, depends on the game), and then select the "Nintendo Wi-Fi Connection settings". On the next screen: you will tap either connection 1,2 or 3. On DSi it can be done on the system's settings, go to DSi's settings > 3rd tab > Internet > Connection Settings and then tap either connection 1,2 or 3.

3rd step: Now click on the "Search for an Access Point" option, then after a short load, melonDS emulated access point (melonAP) will appear, select it and tap OK, after a short while, a connection successful message will appear. On DSi mode, you'll also be required to accept the terms of agreement, this must be done BEFORE you set up the DNS! Go to DSi's settings > 3rd tab > Internet > User Agreement to do that. It'll prompt that it needs to access the internet, press Yes. Once connected, select a language, and on the next screen press Next, then click "I Accept" and then click OK.

On DS: [image] On DSi: [image]

4th step: Now click on the newly created connection, then scroll down to DNS settings, then tap on NO in the "Auto-obtain DNS" setting, after that, click on edit on Primary DNS setting and type a DNS of an alternate WFC server (do the same on the Secondary DNS), after that tap on save settings. On DSi go to Internet > connection settings, click on the newly created connection, then click in "Change Settings", go to the "Auto-Obtain DNS" tab, click in no. Once you've done this, click on detailed setup, input the DNS there, and click OK.
On DS: [thumbnail] On DSi: [thumbnail]

Here's a list of the most famous ones:

AltWFC: 172.104.88.237

Wimmfi: 95.217.77.151

Kaeru: 178.62.43.212

Extra Step: You may be unable to connect if your bios file has an old WFC setting saved in the firmware, in this case, on DS in a WiFi-enabled game, go to the WFC setting on your game then tap Option, and select "Erase the Nintendo WFC Configuration Setting" and then tap OK, the game will shutdown after that. On DSi, go to settings > 3rd tab > Internet > Options > Delete Nintendo WFC Configuration, it will prompt you to confirm, and select yes on both prompts. Once you've done it, you must follow the 2nd step and forward.
On DS: [image] On DSi: [image]


You might find these errors while attempting to connect, along with them you will also find possible solutions:

86420: Natneg error - This is probably caused because of the router, you'll probably need to enable DMZ, or port forward UDP 1024-65535.

61020: Login error - The server is probably in maintenance. You should try another server, but you'll have to execute the extra step first.

52200 and 52201: Connection test failed - Try checking your connection stability, and using another internet connection to see if it fixes the issue.

52100: DNS error - It either means that you misconfigured the DNS or either the ISP or router is blocking DNS requests.

52000: Connection error means that no internet connection was found - It can be caused by misconfiguration of your emulator, PC, or even the router itself. Check which mode you are using, if you are using direct mode, check if npCap, Wincap or libcap package are installed in your system. In Windows, make sure that the emulator is running in admin mode if you are using direct mode.

50199 - Generic internet error means that the connection is interrupted - Try checking your connection stability, and using another internet connection to see if it fixes the issue.

23917: Wimmfi-related code - Your firmware is banned.

20110: Login error, the DNS is probably being blocked by your ISP, If you are getting this. Try this tutorial. In some cases, your ISP may block some of these DNS requests, make sure to test them all and check if they are not down for maintenance.
If this fails, using direct mode sometimes may fix these problems. If you want to try direct mode for any reason you'll have to install Wincap (Windows 7), Npcap (Windows 8 or higher), or the Libpcap package (according to your Linux distro), on Windows you will have to run MelonDS.exe in administrator mode. After that, click on config, then click on Wifi settings. Check the "Direct mode" box on the Wi-Fi settings screen and select your wired adapter.

20105: Login error, try deleting your WFC setting as described in the extra step.

Sorer
Posted on 01-30-20 01:27 PM (rev. 2 of 01-30-20 01:29 PM) Link | #1465
Couple of notes:
This work on both Windows and Linux OS.
For Linux you need to install the libpcap package (according to your distro installation).
It's possible that on Linux you might not need an Ethernet/wired connection and you could use wireless because the drivers there work differently than on Windows.

Rizaia
Posted on 03-26-20 09:01 AM Link | #1568
Hello. I followed all the steps but I can't play online. None of the steps gave me any issue and I only have 1 connection out of the 3 configured, so I guess that's not the problem. I have also tried connecting to both AltWFC and Wimmfi with the same result.

I tried 2 games, mario kart ds and advance wars dark conflict. The following message appears when trying to connect to the wifi mode:

With mario kart DS: Nintendo WFC service for this software has been halted. Error Code 20110.

With advance wars dark conflict: Nintendo Wi-Fi Connection service for this software has been discontinued. And Error Code 20110 again.


My guess is that the alternate WFC servers are either dead or my emulator is trying to connect to the official WFC even though I followed all steps... Any help please?

Sorer
Posted on 03-26-20 10:19 AM Link | #1569
Posted by Rizaia
Hello. I followed all the steps but I can't play online. None of the steps gave me any issue and I only have 1 connection out of the 3 configured, so I guess that's not the problem. I have also tried connecting to both AltWFC and Wimmfi with the same result.

I tried 2 games, mario kart ds and advance wars dark conflict. The following message appears when trying to connect to the wifi mode:

With mario kart DS: Nintendo WFC service for this software has been halted. Error Code 20110.

With advance wars dark conflict: Nintendo Wi-Fi Connection service for this software has been discontinued. And Error Code 20110 again.


My guess is that the alternate WFC servers are either dead or my emulator is trying to connect to the official WFC even though I followed all steps... Any help please?

Try putting 8.8.8.8/1.1.1.1 in the secondary DNS.
Change the router's DNS IP to the DNS that appear in the tutorial and see if that works.
Or, put the DNS on the internet adapter settings on windows (if you use it).

Rizaia
Posted on 03-27-20 04:01 PM Link | #1574
Posted by Sorer
Try putting 8.8.8.8/1.1.1.1 in the secondary DNS.

I tried this and didn't work.

Posted by Sorer
Change the router's DNS IP to the DNS that appear in the tutorial and see if that works.
Or, put the DNS on the internet adapter settings on windows (if you use it).

I don't really know how to do that or if I even want to...


In any case, after some more attempts I thought I'd share a bit of extra info that might be relevant: The first time I followed this tutorial I didn't click the "erase nintendo WFC configuration" button in the options because I was able to get a "connection successful" message when configurating an access point.

However, I read somewhere that erasing the configuration using that button lets the console/game create a new profile for the server or something like that, so I clicked it and erased all the configuration. After doing that, I configurate a new access point following the tutorial but this time I DON'T get the "connection successful" message, even after typing the DNS manually I still don't get a connection successful message by doing a connection test, all I get is the official nintendo message saying the servers have been discontinued (with the same error code I get when trying to connect inside a game).

squeegily
Posted on 03-30-20 02:37 AM (rev. 2 of 03-30-20 02:43 AM) Link | #1584
Posted by Rizaia

even after typing the DNS manually… I get [the] official nintendo message saying the servers have been discontinued

That is actually terrible news, if you're surely interpreting the situation correctly

Would you mind running these commands in the Windows CMD and reporting back their output (in order)?:
  • nslookup nas.nintendowifi.net
  • nslookup nas.nintendowifi.net 95.217.77.151
  • nslookup nas.nintendowifi.net 172.104.88.237
  • nslookup nas.nintendowifi.net 164.132.44.106
  • nslookup nas.nintendowifi.net 8.8.8.8
*if you're on Linux, use dig, and prepend “@” to the DNS server where applicable
e.g.: dig nas.nintendowifi.net @164.132.44.106

**do include any extra "garbage" information the commands output—copy the whole thing (don't forget to wrap the output in [code] tags!)

I have known some routers to block+intercept+override requests to “unauthorized” DNS servers; you can usually disable this, but it'd be necessary to at least peruse the manual to confirm.

Would you feel comfortable sharing the manufacturer and model # of your router with us?

Rizaia
Posted on 04-03-20 04:17 PM Link | #1604
Posted by squeegily
That is actually terrible news, if you're surely interpreting the situation correctly

Ok... just ignore my previous posts I guess. Before you replied this, I discovered the existence of rom patchers (yes, I am very noob) so I tried to patch my rom and follow this tutorial again. Now I get error 20100 instead of the discontinued servers message.

So I guess the question is: is there something else I need to know about all this process a part from using a patched rom and following this tutorial?

Riza16
Posted on 04-08-20 01:06 AM Link | #1623
Hello I have an issue in step 5 : after selecting melonAP in the search result menu I get a connection error 52000 while testing, please help

Generic aka RSDuck
Posted on 04-16-20 10:43 AM Link | #1643
until Indirect Mode works more reliable, there is a workaround presented by Valery0p on Gbatemp, which works even if your computer is connected with wifi to the internet.

It requires Windows 10. Basically you need to use the option to share your internet connection (make sure to disable it turning it automatically off if no device is connected). This creates a virtual ethernet adapter which can be used with melonDS.

I have tried it myself and it worked, though no guarantees what so ever, improving Indirect mode is the better solution.

____________________
Take me to your heart / never let me go!

"clearly you need to mow more lawns and buy a better pc" - Hydr8gon

Sorer
Posted on 04-17-20 11:30 AM Link | #1644
Speaking about getting connected to WFC in MelonDS I hope there would be a way to disable cheats while connected.
We dont want more cheaters lol.

Arisotura
Posted on 04-17-20 11:32 AM Link | #1645
client-side security is bound to fail; cheat protection should be implemented on the server.

____________________
Kuribo64

Sorer
Posted on 04-17-20 11:39 AM Link | #1646
Posted by Arisotura
client-side security is bound to fail; cheat protection should be implemented on the server.

Too bad.
I need to see if the wireless thing works btw .

Sorer
Posted on 04-18-20 09:57 AM Link | #1647
Posted by Generic aka RSDuck
until Indirect Mode works more reliable, there is a workaround presented by Valery0p on Gbatemp, which works even if your computer is connected with wifi to the internet.

It requires Windows 10. Basically you need to use the option to share your internet connection (make sure to disable it turning it automatically off if no device is connected). This creates a virtual ethernet adapter which can be used with melonDS.

I have tried it myself and it worked, though no guarantees what so ever, improving Indirect mode is the better solution.

This method did not work for me for some reason.
If it works for others thats great I guess because I can still use an ethernet connection.

Antact
Posted on 07-10-20 04:43 AM (rev. 2 of 07-10-20 06:04 AM) Link | #2035
What is the indirect mode (I barely have any idea of these things)?
Could anyone please guide me on how this network adapter works? I tried using Wi-Fi as the network adapter and in my DS rom(HeartGold) ,disabled 'Auto obtain IP' ,and entered my own IP pathway ,but it gives error 51100.
Also ,I couldn't understand the workaround given by Valery0p. Please help.

Sorer
Posted on 07-10-20 10:55 AM Link | #2036
You will nee
Posted by Antact
What is the indirect mode (I barely have any idea of these things)?
Could anyone please guide me on how this network adapter works? I tried using Wi-Fi as the network adapter and in my DS rom(HeartGold) ,disabled 'Auto obtain IP' ,and entered my own IP pathway ,but it gives error 51100.
Also ,I couldn't understand the workaround given by Valery0p. Please help.

d to wait for libslirp to be merged and be in the next official release of MelonDS.
it will make things easier and will obsolete this tutorial.

Rayyan
Posted on 07-10-20 12:12 PM (rev. 5 of 08-01-20 06:35 PM) Link | #2037

Do not use these - libslirp has been merged into master.


You can find the latest libslirp build here:
Windows: https://mega.nz/file/yXYkzKDI#mx7WfrfOSqx00oN4Q2w-yjg1rmweSMmWLdgTjg15Knw
Linux: https://mega.nz/file/STYECAhK#FcOfw-w_n34OaofDuE_QLZm00Sj2bAcIdmoyUNQjuU4

____________________

How to write an emulator
1. throw code to be emulated somewhere
2. make memory system that allows accessing that code
3. emulate CPU
4. have fun implementing all the other hardware
-- Arisotura, Tuesday 5th January 2021, 22:00:17

Antact
Posted on 07-13-20 04:57 AM Link | #2057
I may sound stupid ,but what does a libslirp build do?
And is this going to be released as MelonDS 0.8.4?

Rayyan
Posted on 07-13-20 09:42 AM Link | #2058

Libslirp builds do not need npcap to be installed, can be used over Ethernet or Wifi, and can also emulate DSi wifi.
Also, the next version will be 0.9.

____________________

How to write an emulator
1. throw code to be emulated somewhere
2. make memory system that allows accessing that code
3. emulate CPU
4. have fun implementing all the other hardware
-- Arisotura, Tuesday 5th January 2021, 22:00:17

SLG3
Posted on 07-13-20 11:41 AM Link | #2059
That's not working.

Antact
Posted on 07-13-20 12:54 PM Link | #2063
Why does the current version of MelonDS need a packet capture application like npcap anyways?
Pages: 1 2 3 4 5 6 7

Main - General - Tutorial: How to Connect to WFC in MelonDS (Updated 23/09/2023) Hide post layouts | New reply

Page rendered in 0.052 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 116/116, time: 0.015 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.