- Start PowerShell/CMD as admin and run the following command:
mongod --dbpath="C:\Program Files\MongoDB\Server\4.2\data". --bind_ip=0.0.0.0
Your server now must be running
- From the unix terminal (Ubuntu in my case) run the following command:
cat /etc/resolv.conf
The output should be something like this (if you have automatic generation enabled, which it is by default:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf: