skip to content
Alvin Lucillo

Port conflicts in WSL

/ 1 min read

💻 Tech

If you’re using multiple WSL distros as your development environment, you need to pay attention to port conflicts as WSL perform port forwarding. For example, if PostgreSQL is running on port 5432 in WSL 1, you can’t run PostgreSQL on port 5432 in WSL 2. You need to change the port to something else or stop the PostgreSQL in WSL 1.