Can not connect to mongodb locally: Server selection timed out after 30000 ms

What happens if you run the following commands?

netstat -na | grep 1996

and

telnet localhost 1996

These will help you determine if you have an application running on the port and help you to troubleshoot if connectivity is an issue. Note that these are Linux commands so if your local machine is Windows you would have to look for equivalent commands (I can’t remember if these are standard/available on Windows machines or not).

1 Like