# The gateway port answers with your token but belongs to another user (/docs/troubleshooting/port-foreign-mcpd)

What turno doctor means by "mcpd: port <port> answers with your token but belongs to uid <uid>", and the fix.

This page is for when `turno doctor` reports the finding below: what it means and how to fix it.

## What you see [#what-you-see]

```text
  x  mcpd: port <port> answers with your token but belongs to uid <uid>
     fix: turno mcp token rotate
```

It is a failure; a failure makes `turno doctor` exit with code 1. Words in angle brackets stand for values from your machine.

## Why it happens [#why-it-happens]

Something on mcpd's port accepts your gateway token, and the process belongs to another user. Rotating the token invalidates every profile token.

## Fix [#fix]

Run:

```sh
turno mcp token rotate
```

`turno doctor --fix` does not run it for you, because it needs a decision or an answer from you.

Then run `turno doctor` again to see the row turn into `ok`.

The check lives in [`packages/turno/src/mcpd/health.ts`](https://github.com/wimo-dev/turno/blob/main/packages/turno/src/mcpd/health.ts).