wsl-2

Get err_connection_refused accessing django running on wsl2 from Windows but can curl from Windows terminal

杀马特。学长 韩版系。学妹 提交于 2021-01-29 13:55:40
问题 I got the err_connection_refused when trying to accessing django running on wsl2 (http://localhost:8000) from Windows but when I use curl http://localhost:8000 from Windows terminal bash, it's working fine. I have tried to add a new firewall inbound rule for port 8000 but it's still not working. Is there anything else I need to take care of. Thanks a lot 回答1: Seems like a forwarding problem. WSL2's interface is NAT'd, whereas WSL1 was bridged by default. Some ideas: Does the problem resolve

How to connect Android Studio running inside WSL2 with connected devices or android emulator running on host

≡放荡痞女 提交于 2021-01-28 04:05:25
问题 I'm running Android Studio (currently in version 3.6.1) under Ubuntu 18.04 in WSL 2 (Windows 10 2004), which now supports GUI. Since virtualization inside WSL2 doesn't work, I need to keep running my emulator on the host and of course, connected devices which I use for debugging my android app appear on the host. How can Android Studio see the emulator and devices appearing on the host? 回答1: There is a way for the connected devices, but this has to be done one by one: on windows:adb tcpip

How to connect Android Studio running inside WSL2 with connected devices or android emulator running on host

会有一股神秘感。 提交于 2021-01-28 03:55:32
问题 I'm running Android Studio (currently in version 3.6.1) under Ubuntu 18.04 in WSL 2 (Windows 10 2004), which now supports GUI. Since virtualization inside WSL2 doesn't work, I need to keep running my emulator on the host and of course, connected devices which I use for debugging my android app appear on the host. How can Android Studio see the emulator and devices appearing on the host? 回答1: There is a way for the connected devices, but this has to be done one by one: on windows:adb tcpip

I can't use the npm command on Windows 10 with WSL2 ON (ubuntu terminal)

耗尽温柔 提交于 2021-01-24 12:22:20
问题 I'm trying to get the npm command to work but it doesn't want to. As i said in the title, I'm using the windows WSL2. I already have installed nodejs with Git Bash a long time ago but now I need it to work on my ubuntu terminal. How could I fix this issue? My ubuntu terminal: root@DESKTOP-U2RC2DU:~# node -v v10.19.0 root@DESKTOP-U2RC2DU:~# npm -bash: /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: No such file or directory root@DESKTOP-U2RC2DU:~# 回答1: Check your path in WSL. If

I can't use the npm command on Windows 10 with WSL2 ON (ubuntu terminal)

浪子不回头ぞ 提交于 2021-01-24 12:22:20
问题 I'm trying to get the npm command to work but it doesn't want to. As i said in the title, I'm using the windows WSL2. I already have installed nodejs with Git Bash a long time ago but now I need it to work on my ubuntu terminal. How could I fix this issue? My ubuntu terminal: root@DESKTOP-U2RC2DU:~# node -v v10.19.0 root@DESKTOP-U2RC2DU:~# npm -bash: /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: No such file or directory root@DESKTOP-U2RC2DU:~# 回答1: Check your path in WSL. If

VirtualBox and WSL2 [closed]

旧城冷巷雨未停 提交于 2021-01-20 15:15:50
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 months ago . Improve this question I recently updated my Windows 10 version to version 2004 . I also updated WSL to WSL2. I encountered a problem while trying to use a Virtual Machine (Windows 10 Host/Windows 10 Guest). Everytime I try to boot it, it becomes really slow and doesn't make it past

Unable to get PhpStorm to connect to Xdebug running in WSL 2

依然范特西╮ 提交于 2020-12-07 15:21:55
问题 I am having trouble getting PhpStorm 2020.2 to work with xdebug with the following setup: WSL2 running Ubuntu 20, with PHP and php-xdebug installed. Whenever I run my tests with debugging enabled it says "Connection was not established.". This is what the Xdebug log shows: [5877] Log opened at 2020-08-14 17:20:45 [5877] I: Connecting to configured address/port: 172.18.48.1:9006. [5877] E: Time-out connecting to client (Waited: 200 ms). :-( [5877] Log closed at 2020-08-14 17:20:46 This is for

Unable to get PhpStorm to connect to Xdebug running in WSL 2

泪湿孤枕 提交于 2020-12-07 15:18:34
问题 I am having trouble getting PhpStorm 2020.2 to work with xdebug with the following setup: WSL2 running Ubuntu 20, with PHP and php-xdebug installed. Whenever I run my tests with debugging enabled it says "Connection was not established.". This is what the Xdebug log shows: [5877] Log opened at 2020-08-14 17:20:45 [5877] I: Connecting to configured address/port: 172.18.48.1:9006. [5877] E: Time-out connecting to client (Waited: 200 ms). :-( [5877] Log closed at 2020-08-14 17:20:46 This is for

Unable to get PhpStorm to connect to Xdebug running in WSL 2

和自甴很熟 提交于 2020-12-07 15:18:13
问题 I am having trouble getting PhpStorm 2020.2 to work with xdebug with the following setup: WSL2 running Ubuntu 20, with PHP and php-xdebug installed. Whenever I run my tests with debugging enabled it says "Connection was not established.". This is what the Xdebug log shows: [5877] Log opened at 2020-08-14 17:20:45 [5877] I: Connecting to configured address/port: 172.18.48.1:9006. [5877] E: Time-out connecting to client (Waited: 200 ms). :-( [5877] Log closed at 2020-08-14 17:20:46 This is for