# server.socketAddress

- **Module:** server
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/server.ts#L136
- **Page:** https://libtmux.org/reference/ts/server-socketaddress/

```
server.socketAddress(connection: : TmuxConnection) -> string
```

How a connection addresses its daemon, as one comparable string.

An absolute socket path names the daemon outright. A name does not: it is
resolved against `TMUX_TMPDIR` (then the default tmpdir) and a per-user
directory, so the tmpdir in force is part of the address. tmux's own default
name is `default`, which is why an unnamed connection is not a third case.
