You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running dx serve in a fullstack project, the server fails to start with an "Address already in use" error, even though the port is actually free and can be used by other servers.
Steps to Reproduce
Create a new fullstack Dioxus project
Run dx serve
Get error: Failed to bind to 127.0.0.1:8080: Address already in use (os error 48)
Verification
I verified the port is actually free by:
Running lsof -i :8080 shows no process using the port
Successfully running simple-http-server -i -p 8080 on the same port
The error persists even after:
Killing all related processes
Using different ports
Cleaning project (cargo clean)
Error Output
10:38:30 [server] listening on http://127.0.0.1:8081
10:38:29 [dev] Build completed successfully in 327ms, launching app! 💫
10:38:30 [server] thread 'main' panicked at crates/dx/src/main.rs:21:10:
10:38:30 [server] Failed to build server: Os { code: 48, kind: AddrInUse, message: "Address already in use" }
Additional Context
The issue occurs consistently across project restarts
Other web servers can successfully bind to the same port
No other processes are visibly using the port
System permissions appear correct (user owns all relevant directories)
The problem persists even with elevated permissions
Attempted Solutions
Used different ports
Cleaned project and cargo cache
Checked and fixed file permissions
Verified network access permissions
Tested with simple-http-server to confirm port availability
Would appreciate any guidance on resolving this issue or what additional information might be helpful.
The text was updated successfully, but these errors were encountered:
Environment
Issue Description
When running
dx serve
in a fullstack project, the server fails to start with an "Address already in use" error, even though the port is actually free and can be used by other servers.Steps to Reproduce
dx serve
Failed to bind to 127.0.0.1:8080: Address already in use (os error 48)
Verification
I verified the port is actually free by:
lsof -i :8080
shows no process using the portsimple-http-server -i -p 8080
on the same portcargo clean
)Error Output
Additional Context
Attempted Solutions
simple-http-server
to confirm port availabilityWould appreciate any guidance on resolving this issue or what additional information might be helpful.
The text was updated successfully, but these errors were encountered: