1. AkumaNoYami

    AkumaNoYami Member
    Newcomer

    Joined:
    Mar 1, 2016
    Messages:
    26
    Country:
    Gambia, The
    try tsudo /data/data/com.termux/files/home/switch-lan-play/build/src/lan-play
     
  2. raulls

    raulls Member
    Newcomer

    Joined:
    Nov 19, 2019
    Messages:
    10
    Country:
    Spain
    ty for reply
    but still same error.
    enter main
    /system/xbin/su: invalid option

    but if i go /data/data/com.termux/files/home/switch-lan-play/build/src/lan-play this directory, and do
    su
    ./lan-play

    i can run lan-play and enter server address. but after that, error: get mac all zero

    any idea how to fix this?
     
  3. lil-devil

    OP lil-devil GBAtemp Regular
    Member

    Joined:
    Oct 16, 2007
    Messages:
    223
    Country:
    Canada
    when you get to the src dir, run "tsudo ./lan-play" instead of using su
     
  4. raulls

    raulls Member
    Newcomer

    Joined:
    Nov 19, 2019
    Messages:
    10
    Country:
    Spain
    still getting enter main /system/xbin/su: invalid option -- -
     
  5. Tiagomcs20

    Tiagomcs20 Newbie
    Newcomer

    Joined:
    Nov 26, 2019
    Messages:
    7
    Country:
    Portugal
    Has anyone managed to get this working on an android device? If so, could you simplify the steps/ links for download?

    Thanks in advance
     
  6. carloscostaxoxo

    Newcomer

    Joined:
    Feb 8, 2020
    Messages:
    5
    Country:
    Germany
    hey tried to follow the guide for mac and when i enter a server it asks me to enter a number between 1-14 and if i enter a number it says no permission
     
  7. iMythD

    iMythD Advanced Member
    Newcomer

    Joined:
    Nov 30, 2010
    Messages:
    95
    Country:
    Argh, how complicated I just want to play ACNH with local wireless
     
  8. ChronicGamer

    ChronicGamer Newbie
    Newcomer

    Joined:
    Mar 20, 2020
    Messages:
    7
    Country:
    United Kingdom
    honestly not worth the time, ive managed to set up the client finally after a painful 10 hours in total with outdated guides too, until i found this but my switch or brothers wont connect to it, get a dns issue.
     
  9. Shokubox

    Shokubox Newbie
    Newcomer

    Joined:
    Mar 29, 2020
    Messages:
    2
    Country:
    Philippines
    Option 2 Error
    lan-play --relay-server example.server:11451

    : unknown paramter: --relay-server

    : unknown paramter: example.server:11451

    --relay-server-addr is required

    Input the relay server address [ domain/ip:Port ]:lan-play --relay-server example.server:11451

    : Failed to parse and get ip address. --relay-server-addr: lan-play
     
  10. mdmachine

    mdmachine GBAtemp Regular
    Member

    Joined:
    Jun 15, 2009
    Messages:
    184
    Country:
    United States
    Okay I have it running on a PI and loading on boot using tmux and rc.local

    so get tmux installed:
    sudo apt-get install tmux


    So now I made a couple sh's for running the server, the first being "server.sh". This one is the actual command to run the server and where its pointing.
    CD or direct to where you want it, so change "/home/pi/switch-lan-play" accordingly:

    sudo nano /home/pi/switch-lan-play/server.sh


    Inside there you want it to look something like this, edit it for whatever server, interface and pmtu you want/need. In my case its running the "lan-play" i built with make, located in "/home/pi/switch-lan-play/build/src/":

    #!/bin/sh
    sleep 5
    sudo /home/pi/switch-lan-play/build/src/./lan-play --netif eth0 --pmtu 500 --relay-server-addr frog-skins.com:11451
    exit 0


    Save and exit nano...

    Next I made another script (for rc.local to run it within tmux on boot) I called it tmux_script.sh
    CD or direct to where you want it, so change "/home/pi/switch-lan-play" accordingly:

    sudo nano /home/pi/switch-lan-play/tmux_script.sh


    Inside there you want it to look something like this:

    #!/bin/sh
    cd /home/pi/switch-lan-play
    /usr/bin/tmux new-session -d -s SLP "sh /home/pi/switch-lan-play/server.sh"
    sleep 1
    exit 0


    This script runs the previous script we made, detaches the tmux window and names it "SLP".

    Save and exit nano...

    Now off to rc.local
    sudo nano /etc/rc.local


    And in here we want to target the tmux sript we made between fi and exit.
    Should look something like this:

    # Print the IP address
    _IP=$(hostname -I) || true
    if [ "$_IP" ]; then
    printf "My IP address is %s\n" "$_IP"
    fi

    sudo /etc/init.d/noip start
    sleep 5
    bash /home/pi/switch-lan-play/tmux_script.sh
    sleep 5
    bash /home/pi/jdownloader/jdownloader.sh
    sleep 10
    bash /etc/init.d/terraria-autostart

    exit 0


    As you can see in my rc.local I have jdownloader, terraria and no-ip servers running as well.
    Now when you save that, run
    sudo reboot -h

    When its all back up, check if there are tmux sessions running.
    Now this way its all happening as root. So if you just ran "tmux ls" you wouldn't see anything.
    So this should show you a session, named SLP
    sudo tmux ls


    In order to see this session use the command:
    sudo tmux a -t SLP


    In order to close that session (it still runs in the background):
    Press CTRL+B, then press D

    You can go back anytime.

    You can close and stop the server by pressing CTRL+C

    tmux is great, if your not familiar with it, read up. I find it to be very useful.
     
    Last edited by mdmachine, Apr 4, 2020 at 4:36 PM
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - online(ldn_mitm), Smashing, wireless