Linux · Address Already in Use

Linux Error Code EADDRINUSE (98)

The network address or port is already bound.

errorLast verified 2026-11-08Linux man-pages: errno(3)
Quick answer

The network address or port is already bound.

CodeEADDRINUSE (98)
ProductLinux
Company / originLinux community · International open source
CategoryOperating Systems
Platform / versionsLinux kernel 4.x and later · Architecture-dependent errno numbering
Severityerror
Official sourceLinux man-pages: errno(3) ↗
Last verified2026-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

  1. Step 1

    Find the listener with ss -lntp or lsof -i :PORT.

  2. Step 2

    Stop the old process or choose a different port.

  3. Step 3

    Use SO_REUSEADDR only where appropriate; do not mask a duplicate service.

When to escalate

Before you escalate: If an errno persists after checking permissions, paths, mounts, and resource limits, collect the command, the full error, strace output around the failing syscall, and the kernel version, then contact the application or distribution maintainer.

Related codes

CodeNameWhat it means
ECONNREFUSED (111)Connection RefusedThe remote host actively refused the connection.
EACCES (13)Permission DeniedThe process does not have permission to access the file or directory.
EBUSY (16)Device or Resource BusyThe resource is busy and cannot be used or released.
EEXIST (17)File ExistsThe file or directory already exists.
EINVAL (22)Invalid ArgumentA 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.