Linux Error Code EADDRINUSE (98)
The network address or port is already bound.
The network address or port is already bound.
| Code | EADDRINUSE (98) |
| Product | Linux |
| Company / origin | Linux community · International open source |
| Category | Operating Systems |
| Platform / versions | Linux kernel 4.x and later · Architecture-dependent errno numbering |
| Severity | error |
| Official source | Linux man-pages: errno(3) ↗ |
| Last verified | 2026-11-08 |
What does Linux error EADDRINUSE (98) mean?
EADDRINUSE (errno 98) means another process is already listening on the requested IP and port, or a socket is in TIME_WAIT. It is one of the most common deployment errors.
Common causes
- Another process is listening on the same port.
- A previous instance did not shut down cleanly.
- The service is binding to a different address than expected.
How to fix it
- Step 1
Find the listener with ss -lntp or lsof -i :PORT.
- Step 2
Stop the old process or choose a different port.
- Step 3
Use SO_REUSEADDR only where appropriate; do not mask a duplicate service.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
ECONNREFUSED (111) | Connection Refused | The remote host actively refused the connection. |
EACCES (13) | Permission Denied | The process does not have permission to access the file or directory. |
EBUSY (16) | Device or Resource Busy | The resource is busy and cannot be used or released. |
EEXIST (17) | File Exists | The file or directory already exists. |
EINVAL (22) | Invalid Argument | A system call or library function received an invalid argument. |
Source & verification
This page was checked against Linux man-pages: errno(3) on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with Linux community. Always confirm destructive or security-sensitive steps with the official documentation.