Homebrew WIP [Official] switch-lan-play

Wierd_w

Well-Known Member
Member
Joined
May 12, 2018
Messages
406
Trophies
0
Age
41
XP
651
Country
United States
That's a significantly more complicated issue that you make it sound, because "local wireless" is switch-to-switch with no wireless router. Sure, with a WLAN device in monitor/promiscuous mode that can both capture packets from a switch and broadcast packets recieved over the internet you can do that, but that's a whole new thing and out of scope for switch-lan-play.

PPP should be the least of your concerns here. It should be "what kind of hardware does everyone need to standardize on" for such a thing in the first place, as well as how to identify and capture switch-specific packets so we can even relay and replay them in the first place.


I was meaning more like this:

Custom sysmodule catches the attempt to put the device into local wireless mode. Presents a virtual interface instead. The game works exclusively with the virtual interface, not the real wifi chip.

The virtual interface accepts the datagrams from the game, and packages them as PPPoE frames.
The ACTUAL network stack forwards the PPPoE frames to a remote host, using some kind of session control to establish the PPP handshake.
The remote unpackages the encapsulated datagrams, and presents them on its own virtual interface as incoming datagrams.

The game does not know it is not using Ninty's proprietary wireless as the physical layer.
 
  • Like
Reactions: 0x40 and S3phi40T

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,287
Country
United States
I was meaning more like this:

Custom sysmodule catches the attempt to put the device into local wireless mode. Presents a virtual interface instead. The game works exclusively with the virtual interface, not the real wifi chip.

The virtual interface accepts the datagrams from the game, and packages them as PPPoE frames.
The ACTUAL network stack forwards the PPPoE frames to a remote host, using some kind of session control to establish the PPP handshake.
The remote unpackages the encapsulated datagrams, and presents them on its own virtual interface as incoming datagrams.

The game does not know it is not using Ninty's proprietary wireless as the physical layer.

I'd assume such a thing is viable, but I haven't looked up/into how the switch handles local wireless mode. How easy such a thing is would depend on whether the OS handles local wireless or the application.

The primary advantage of switch-lan-play right now is that it's a no-KIP solution. That's the context I was thinking in (no KIP module.)
 

S3phi40T

Well-Known Member
Member
Joined
Dec 15, 2016
Messages
302
Trophies
0
Age
40
XP
917
Country
Poland
Works surprisingly well.

Is there any chance this can work with Super Mario Party?
NO.
This game doesn't have LAN party mode. Only Local Wireless mode.

- Once again - this list is about LAN games, not Local Wireless. Difference is, "Local Wireless" is Wi-Fi ad-Hoc connection between nearby switches. LAN mode uses your existing home/office/school/whatever network you use.
HzuBBD7.jpg
- In most cases "Local Wireless" is default option and "LAN" has to be activated on certain screen by variation of certain key combination usually requiring pressing left analog and bumpers - [Left Stick] + [L] + [R].
- Some games had LAN play delivered as an update hence game might need update. Please note especially if you have only XCI game you might need NSP update. Please do not ask here to get them from.
- All players need the same game version - I mean game update, not region.
- f you turn local connection or however game mode is called and you get changed WI-Fi icon with "L" shaped symbol -
h9v7M15.jpg
- it means you have entered Local Wireless mode, not LAN mode.


Thanks to everyone who contributed!!

SPLATOON 2 (always requires latest patch to run)
Press [Left Stick] + [L] + [R] at the local play option - it's called "The Shoal".
Hold down until screen goes black and Wireless mode is replaced with LAN mode.

MARIO KART 8 v1.0
Press [Left Stick] + [L] + [R] on the main menu screen.

MARIO TENNIS v1.2
Select Free Play from the Main Menu
Press [Left Stick] + [L] + [R]

POKKEN TOURNAMENT DX v1.3.3
This one is tricky.
From the very main screen where game asks to "Press [L] + [R] to start":
Press + [X] + [Arrow Down (either digital or analog stick)] then add [L] + [R]
New screen asking if you want to enter Event Mode will appear.

ARMS v1.1.0

At the main menu screen:
[Left Stick] + [L] + [R]

Titan Quest
Start game as "Multiplayer - Local"

RetroArch (Homebrew apps)
They simply work via tunel as part of your LAN
 

reexe

Well-Known Member
Newcomer
Joined
Aug 15, 2018
Messages
78
Trophies
0
XP
227
Country
Sweden
You can alreade use it on android, just use the linux binaries and install terminal emulator on your android(must have root)

Sweet. I will have to try this.
If anyone wants to try that does not have root, it might be possible to run a Linux emulator on the phone.

It would be nice to have a GUI ;)
The GUI would just have to work the terminal commands (you would need root if that was all the GUI did tho) :)
 

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,287
Country
United States
I figure I'll mention this since running things like this as root is a dumb idea...if you're on Linux (maybe Android, but selinux might get in the way) and don't want to run this as root for security reasons, you can also (as root) grant the binary the needed capabilities instead and run it as a regular user, which is far more secure (if any sort of RCE vulnerability exists, they won't be taking over your whole system):

Code:
sudo setcap cap_net_raw,cap_net_admin=eip lan-play
./lan-play
 

JohnMiller91

Member
Newcomer
Joined
Apr 9, 2018
Messages
20
Trophies
0
Age
38
XP
280
Country
Germany
Why do we have so many servers? I dont think too many people are using this at the moment so it would be a good thing to have one crowed server to find some people to play together? Just tried to find some partner for a match Mario tennis without luck.​
 

S3phi40T

Well-Known Member
Member
Joined
Dec 15, 2016
Messages
302
Trophies
0
Age
40
XP
917
Country
Poland
Why do we have so many servers? I dont think too many people are using this at the moment so it would be a good thing to have one crowed server to find some people to play together? Just tried to find some partner for a match Mario tennis without luck.​
Are you serious?
If I want to play with friends I set up own server close to them in the middle of Europe, not joining some random aDSL one I the USA.
This is tunnel of LAN, not online service. You want to have packets travel as near as possible. Not to go through the other hemisphere of the globe.

Wysłane z mojego Redmi Note 4 przy użyciu Tapatalka
 

lil-devil

Well-Known Member
Member
Joined
Oct 16, 2007
Messages
225
Trophies
0
Age
33
Website
Visit site
XP
906
Country
Canada
Hopefully an Android version gets released so I can play on the go while tethered

Taadaa! released. Ish.

You can alreade use it on android, just use the linux binaries and install terminal emulator on your android(must have root)

I figure I'll mention this since running things like this as root is a dumb idea...if you're on Linux (maybe Android, but selinux might get in the way) and don't want to run this as root for security reasons, you can also (as root) grant the binary the needed capabilities instead and run it as a regular user, which is far more secure (if any sort of RCE vulnerability exists, they won't be taking over your whole system):

Code:
sudo setcap cap_net_raw,cap_net_admin=eip lan-play
./lan-play
 
  • Like
Reactions: S3phi40T

Coulsty

Member
Newcomer
Joined
Nov 30, 2015
Messages
12
Trophies
0
Age
34
XP
103
Country
I am hosting a server for australians 24/7, if you want to jump on for good ping shoot me a msg here or on the switch lan play discord - username "lithium"
 

fst312

Well-Known Member
Member
Joined
Nov 4, 2008
Messages
1,179
Trophies
1
Age
36
Location
New York
XP
3,019
Country
United States
Based on the latest direct smash bros supports lan. I thought Nintendo would make sure they punish banned users like me and not allow lan support for this game.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users