But i amnot able to connectto mongodb on windows via same ip i.e192.168.176.1. mongoose.connect(`mongodb://user:pass@192.168.176.1:27017/dbname`,{useNewUrlParser:true,useUnifiedTopology:true,}).then((msg)=>{console.log("Successfully Connected via mongoose!");}).catch((err)=>console.l...
Yeah - I have a number of mongo servers running elsewhere that don't have the ports exposed I normally connect to from wsl using the mongo cli but I have some Windows GUI tools that make some things easier so necessitating the song-and-dance Have you tried: ssh -i ~/.ssh/your.key -...
Error: could not detect WSL2 VM: could not find WSL2 VM ID: could not dial VM 291ADC8D-5E4F-4839-9EDC-8C64A9534413: could not dial Hyper-V socket: connect(291adc8d-5e4f-4839-9edc-8c64a9534413:016a6eb7-facb-11e6-bd58-64006a7986d3) failed: A connection attempt failed because ...
String("uri", "mongodb://localhost:27017", "URI of the mongo server of interest") flag.Parse() ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() client, err := mongo.Connect(ctx, options.Client().ApplyURI(*uri)) if err != nil { log.Fatal...