Change Game Port [IPG]
#1
This is a code that changes the port used by the game to connect to other players.

NTSC-U:
C210DFD4 00000002
2C031964 41820008
3860XXXX 00000000

PAL:
C210E074 00000002
2C031964 41820008
3860XXXX 00000000

NTSC-J:
C210DF94 00000002
2C031964 41820008
3860XXXX 00000000

NTSC-K:
C210E0EC 00000002
2C031964 41820008
3860XXXX 00000000

XXXX should be the hex value of a 16-bit integer of the port you want to use. (except 6500)
Setting XXXX to 0000 will give you a random, unused port decided by the operating system.
(Please note that if using Dolphin on *nix based systems, you can not use any ports below 1024)

Source:

Code:
.set DESIRED_PORT, 6969
cmpwi r3, 6500    # This port is not used for gameplay
beq exit
li r3, DESIRED_PORT
exit:
Reply
#2
Note that if you have your console linked to a Wiimmfi account there is an easier method to do that: Go to https://wiimmfi.de/payload/settings and change the UDP port from its default value (22xxx) to whatever value you want to use, no cheat code required.
Reply
#3
(08-26-2020, 11:36 AM)Leseratte10 Wrote: Note that if you have your console linked to a Wiimmfi account there is an easier method to do that: Go to https://wiimmfi.de/payload/settings and change the UDP port from its default value (22xxx) to whatever value you want to use, no cheat code required.

Part of the reason I made this code is to actually bypass Wiimmfi's forced port and choose a random one which Wiimmfi doesn't allow you to do (by setting it to 0000), so I could use multiple Dolphin instances with the same NAND easily.
Reply
#4
Wiimmfi should allow you to disable the feature and use a random port - just go to https://wiimmfi.de/payload/settings and enter 0 as the port. Doesn't that work?
Reply
#5
(09-03-2020, 06:38 PM)Leseratte10 Wrote: Wiimmfi should allow you to disable the feature and use a random port - just go to https://wiimmfi.de/payload/settings and enter 0 as the port. Doesn't that work?

It didn't work as of you making your original post saying Wiimmfi lets you do it, but now it does. Nice.
Reply
#6
We didn't change anything to that port stuff within the last month so that's surprising to hear. But as long as it now works, doesn't really matter.
Reply
#7
Just wanted to let you (and others who are planning to use this code) know:

When you set the XXXX placeholder to 0, the Wii OS does indeed use a random available port, but the game is not coded to support that and doesn't know that its actual port is different from the requested port. That usually does not break stuff, but if you have two consoles in the same network that want to skip NATNEG, you might run into issues because the consoles will believe that the other player literally has port 0. Running this code with XXXX=0 will also report to the server that your private port is 0 instead of your actual port.
Reply
#8
This code fixed the issue I had with DWC based servers on dolphin

error 67010 as stated in this post: wii-homebrew: New MKWii Bugfixes: Auto-Reconnect & Frameskip
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)