Tutorial  Updated

Install and configure switch lan-play on Android

How to setup LAN-Play on Android phone/tablet
REQUIRES ROOT and Android 7.0+


Actions in Android:
1. Install the latest Termux from F-droid
2. Launch Termux app, you'll see a black terminal window.
3. Next, enter these 3 commands one by one:
Code:
curl -L tinyurl.com/switchlan > switchlan
chmod +x switchlan
bash switchlan
note: tinyurl.com/switchlan is a link to the script on my github repo

If after "bash switchlan" there's error: "No superuser binary detected. Are you rooted?" enter these 2 commands to fix (you can paste in Termux with longtap):
Code:
pkg install sed
sed -i 's|SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su")|SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su" "/su/bin/su")|g' $PREFIX/bin/tsu
3.5. choose what version you want to build (choose stable if latest doesn't compile)
4. It'll setup additional packages and compile lan-play from source (1-5 minutes)
5. Start WiFi tethering (or connect your phone to wifi)

Actions in HOS (Switch):
1. Connect to WiFi and configure network settings:
Code:
IP-address Settings Manual
IP-address 10.13.X.Y (where X and Y is two random numbers 0-255, example: 10.013.187.66 DO NOT COPY EXAMPLE)
Subnet Mask 255.255.0.0
Gate 10.13.37.1
DNS Settings Manual
Primary DNS 163.172.141.219
Secondary DNS 207.246.121.77
2. download ldn-mitm for your version of atmosphere
3. extract it in root of your SDcard (don't forget to clear an archive bit in Hekate if necessary)
4. reboot switch

How to connect to servers:
  • Launch Termux and enter "bash switchlan", script will ask you for root privileges and server's ip address and port
  • or enter "bash switchlan IP address : port" to skip asking part, example: "bash switchlan edgymin.ga:11451"
  • If connection was successful you'll see "Server IP: a.b.c.d" at the end
How to disconnect:
  • Long tap anywhere in Termux -> more -> kill process; or press "exit" in Termux's notification
How to delete lan-play:
  • bash switchlan remove
Changelog:
05.14.21 - replaced wget with curl, as it is preinstalled on all devices
05.16.21 - added workaround for devices rooted with superSU
10.28.21 - updated script - added option of stable release
10.30.21 - bugfixes, QoL changes to the script,
read more.
 
Last edited by janAkali,
Hi I.
Don't have a laptop to do this with but I see I can use my phone but every time I try to do something it keeps asking for Are you rooted? I don't know what to do
Post automatically merged:

I trying to set it up by it's not working.Is it OK I get some help
 
Last edited by husk,
Hi I.
Don't have a laptop to do this with but I see I can use my phone but every time I try to do something it keeps asking for Are you rooted? I don't know what to do

I trying to set it up by it's not working.Is it OK I get some help
You need a rooted device for this to work.
What is Root - https://en.wikipedia.org/wiki/Rooting_(Android)
You can search online how to Root your phone. The process is often different for every model.
 
Hi after I insert the server it gives me this and nothing happens, how do I solve it?

if I leave it blank and press enter it tells me:

./switchlan: line 26: sudo: command not found
 

Attachments

  • 20241021_090335.jpg
    20241021_090335.jpg
    415.9 KB · Views: 38

Site & Scene News

Popular threads in this forum