Connection Reset when port forwarding with Vagrant

I had Django listening on 127.0.0.1:8000 (default) As explained in Mitchell’s answer here: Vagrant’s port forwarding not working I should have been listening on 0.0.0.0. Here is a quote of his answer: I wanted to add an additional note that often this is caused by the server within the VM because it binds to 127.0.0.1, … Read more

Access a localhost running in Windows from inside WSL 2 [closed]

Short answer for most recent Windows versions mDNS has been a feature of WSL2 for a while now. Concatenating your WSL2 hostname (or the equivalent command/function in your programming/language environment) with “.local” should get you access. For example, from Bash, try: ping “$(hostname).local” For instance, if your hostname is “MyComputer”, then the mDNS should be … Read more

WSL-2: Which ports are automatically forwarded?

When you run WSL-2, a machine like a vitural machin run on your window device. Windows will create a local network, same your LAN, and connect WLS-2 to this network. On your WSL2, you can run ip a | grep eth0, result look like: 5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default … Read more

PuTTY configuration equivalent to OpenSSH ProxyCommand

If you want to “jump a host”, then using “local proxy command” is an overkill. Recent versions of PuTTY have this build-in. Go to Connection > Proxy, and in “Proxy type”, select “SSH to proxy and use port forwarding”. Then specify the details of the intermediate server below (like Hostname, Port, Username, Password [or load … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)