Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't connect to linux localhost from Windows browser #2471
I am trying to run two localhost applications (not at the same time) in bash on Ubuntu on Windows: flask and jekyll. I'm starting the services from the bash on Windows terminal using 'jekyll serve' and 'python -m flask run'. In both cases I copy and paste the localhost address printed to the terminal (127.0.0.1:5000, and 127.0.0.1:4000, respectively) to a browser on Windows 10, and get 'This site can't be reached'.
Edit: I have installed flask on windows and am able to run and access a local server from the Windows command line as expected (but still not bash).
I have tried upgrading to the newer version of Ubuntu (uninstalled and reinstalled to go from v14 to v16) as well as creating a firewall rule for the bash.exe file on Windows Defender.
Microsoft Windows build number [Version 10.0.15063]
Thanks, Nick. I'm out of town for the weekend, but I'll try those on Monday when I get back and report here. On Sep 8, 2017 12:11 PM, "Nick Thieling" <firstname.lastname@example.org> wrote: If it doesn't work in bash it makes me think you have a firewall restriction of some sort, can you try just blanket rule shutting the firewall off to see? Also do sudo ufw status to make sure Ubuntu isn't running a firewall. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#2471 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABeCldwDWWQALubA3edjG82NW1hw_4tAks5sgWcsgaJpZM4PNK4S> .
Disabling the Windows Defender Firewalls didn't work. Trying to run 'sudo ufw status ' gave me an error:
ERROR: problem running iptables: iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)