Free | No tracking | Every fact with a source|German and English

Error / Home and connection

Ports are not available: … bind: An attempt was made to access a socket in a way forbidden by its access permissions (Port is reserved by Windows)

Docker can’t open the requested port (for example 3000 for Open WebUI) because Windows has blocked it or another program is using it.

The message

Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:3000 … bind: An attempt was made to access a socket in a way forbidden by its access permissions.

Affects: Docker Desktop, Open WebUI

Why is this happening?

Through Hyper-V and the NAT service (winnat), which WSL 2 and Docker Desktop also use, Windows reserves entire port ranges. If your port falls within one of these ranges, no program can open it — even if netstat shows it as free. Less often, another service (for example IIS) is already using the port.

How to fix it

  1. Open a terminal as administrator and show the blocked ranges: netsh interface ipv4 show excludedportrange protocol=tcp. If 3000 falls between the start and end port of a line, the port is reserved.
  2. Fastest fix: use a different port on your PC, for example -p 3001:8080 instead of -p 3000:8080, and then open http://localhost:3001.
  3. Or restart the NAT service: net stop winnat and then net start winnat. While winnat is stopped, WSL may briefly have no internet.
  4. To keep the port free permanently, reserve it for yourself while winnat is stopped: netsh int ipv4 add excludedportrange protocol=tcp startport=3000 numberofports=1 store=persistent, then net start winnat.
  5. Check with netstat -aon | findstr :3000 whether another program is using the port, and stop it if needed.
  6. Then start the container again, for example docker start open-webui.

Better not: Only change Windows’ dynamic port range (netsh int ipv4 set dynamic …) if the simpler steps don’t help.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.