use a captive portal as browser [python OS X/linux/MAYBE win 10 bash]

Discussion in 'Switch - Games & Content' started by parrotgeek1, Mar 3, 2017.

  1. parrotgeek1
    OP

    parrotgeek1 Advanced Member

    Newcomer
    53
    27
    Dec 2, 2012
    United States
    [link gone. obsolete]

    It works on Linux, Mac, BSD and Windows 10 Ubuntu bash (but NOT native windows!)

    instructions

    clone repo to a folder
    cd to that folder

    EDIT dns.py change 10.151.113.112 to the LAN ip of your computer (sorry! will automate later)

    sudo python switchdns.py

    on switch change dns server to the LAN ip of your computer
    restart switch

    try to connect to internet
    if it works a box will pop up, enter a URL in it
    You can click cancel to make the Switch internet work normally for games again.
     
    Last edited by parrotgeek1, Sep 11, 2017
  2. Noctosphere

    Noctosphere Moon furries | Official follower of Skiddon't-ism

    Member
    2,031
    1,917
    Dec 30, 2013
    Canada
    Between three furries women
    anyone tested this with their switch?
    does it works?
    do we have a working internet browser?
     
  3. parrotgeek1
    OP

    parrotgeek1 Advanced Member

    Newcomer
    53
    27
    Dec 2, 2012
    United States
    Someone tested it. It has a bug where it stops working after 20 seconds. I know why though. I'll fix it today.
     
  4. kingraa777

    kingraa777 boom!

    Member
    1,050
    266
    Apr 17, 2015
    sweet !!
     
  5. parrotgeek1
    OP

    parrotgeek1 Advanced Member

    Newcomer
    53
    27
    Dec 2, 2012
    United States
    I fixed the bug. it's at the same link
    It still doesn't respond correctly with NXDOMAIN though.
     
  6. kingraa777

    kingraa777 boom!

    Member
    1,050
    266
    Apr 17, 2015
    hmmmb ill check it out later bit tired atm
     
    parrotgeek1 likes this.
  7. parrotgeek1
    OP

    parrotgeek1 Advanced Member

    Newcomer
    53
    27
    Dec 2, 2012
    United States
    it works now
     
  8. RedScaledOne

    RedScaledOne Member

    Newcomer
    10
    0
    Jul 20, 2016
    Gambia, The
    This works like a charm.. well kinda haha xD
     
  9. InsaneNutter

    InsaneNutter GBAtemp Advanced Fan

    Member
    556
    371
    Dec 26, 2007
    Yorkshire, UK
    I can confirm this does work with bash on Windows 10.

    The IP address the http server listens on appears as 0.0.0.0, however will ask where you want to go when visiting conntest.nintendowifi.net

    Nice work :)
     
    parrotgeek1 likes this.
  10. Katkat

    Katkat Member

    Newcomer
    26
    2
    Jul 13, 2015
    France
    I confirm, same error with Ubuntu Windows 10 (bash)
     
  11. Flame

    Flame Me > You

    Member
    3,873
    5,053
    Jul 15, 2008
    Great! i can use my chromebook for gaming whilst i surf the net on my switch!

    thank you.
     
    siFippo, jsa and parrotgeek1 like this.
  12. Baoulettes

    Baoulettes The lonely man

    Member
    544
    149
    May 25, 2011
    France
    C:\Users\Baoulettes\Desktop\GBATemp
    I don't seem to get it to work on win 10.
    On switch I get error 2110-3150 and on pc I have that :
    Code:
    pyminifakeDNS:: dom.query. 60 IN A dynamicip
    The system cannot find the path specified.
    response: app-a02.lp1.npns.srv.nintendo.net. -> 52.91.88.221
    response: e0d67c509fb203858ebcb2fe3f88c2aa.baas.nintendo.com. -> 54.192.185.13
    Redir to lan ip
    response: conntest.nintendowifi.net. -> 192.168.1.66
    Redir to lan ip
    response: conntest.nintendowifi.net. -> 192.168.1.66
    Redir to lan ip
    response: conntest.nintendowifi.net. -> 192.168.1.66
    response: receive-lp1.er.srv.nintendo.net. -> 52.206.189.213
    response: app-a02.lp1.npns.srv.nintendo.net. -> 54.89.223.238
    response: e0d67c509fb203858ebcb2fe3f88c2aa.baas.nintendo.com. -> 54.192.185.126
    response: receive-lp1.dg.srv.nintendo.net. -> 52.202.47.110
    response: receive-lp1.dg.srv.nintendo.net. -> 52.202.47.110
    response: receive-lp1.dg.srv.nintendo.net. -> 52.202.47.110
    
     
  13. parrotgeek1
    OP

    parrotgeek1 Advanced Member

    Newcomer
    53
    27
    Dec 2, 2012
    United States
    0.0.0.0 is not an error. It means "everywhere".

    — Posts automatically merged - Please don't double post! —

    ONLY Windows 10 bash (Linux emulator) NOT normal Windows. Install windows subsystem for Linux. Then open bash.exe and do the instructions in there.
     
    Baoulettes likes this.
  14. the_randomizer

    the_randomizer The Temp's official fox whisperer

    Member
    21,227
    10,081
    Apr 29, 2011
    United States
    Dr. Wahwee's castle
    Already taking a crack at the Switch, that was sure quick. But if it's anything like the Wii U situation, we won't get anything truly useful till 2021.
     
  15. parrotgeek1
    OP

    parrotgeek1 Advanced Member

    Newcomer
    53
    27
    Dec 2, 2012
    United States
    It is probably vulnerable to one of more stagefright-esque exploits. Seems to still use the same video player. And the browser is a few months old lol
     
  16. driverdis

    driverdis I am Justice

    Member
    2,392
    901
    Sep 21, 2011
    United States
    1.048596β
    if anyone wants to watch videos, the Switch will crash using the Captive Portal method. I made this tutorial to use the Social Media linking to escape to YouTube as video playback works there.
    http://gbatemp.net/threads/tutorial...on-switch-with-working-video-playback.463253/
    As a bonus, I have the User-Agent spoofed to IOS7 Safari so the mobile version of YouTube opens at it plays video automatically when clicked on.
     
  17. DavGerm4

    DavGerm4 Member

    Newcomer
    18
    0
    May 20, 2011
    United States
    Vekta
    Just tried it on my Switch, and it seems to be working! Here's a picture of YouTube's Main page: https://imgur.com/a/IdeEQ
     
  18. driverdis

    driverdis I am Justice

    Member
    2,392
    901
    Sep 21, 2011
    United States
    1.048596β
    playing any video WILL crash the Switch and it will reboot. so far, the only way to play videos is via the method I posted about above.
     
  19. DavGerm4

    DavGerm4 Member

    Newcomer
    18
    0
    May 20, 2011
    United States
    Vekta
    Sweet, I'll look into that! I just figured I'd post a picture of it working for now.. Plus, my Switch just arrived a few hours ago, so it needs to charge for now...
     
  20. driverdis

    driverdis I am Justice

    Member
    2,392
    901
    Sep 21, 2011
    United States
    1.048596β