> For the complete documentation index, see [llms.txt](https://docs.hyperdbg.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperdbg.org/commands/meta-commands/.listen.md).

# .listen (listen on a port and wait for the debugger to connect)

Description of the '.listen' command in HyperDbg.

### Command

> .listen

### Syntax

> .listen \[Port (decimal)]

### Description

Listens for the debugger to connect to **this computer** (works as a **guest** debuggee server).

{% hint style="success" %}
If you don't specify the port, then **HyperDbg** uses the default port, which is **50000**; however, you can [change the default port](https://docs.hyperdbg.org/tips-and-tricks/misc/customize-build) if you compile the **HyperDbg**.
{% endhint %}

### Parameters

**\[Port (decimal)] (optional)**

The port address that the remote debugger listens on.

### Examples

The following command enables a server and listens on a port (by default **50000**), and waits for a debugger to connect to it.

```
HyperDbg> .listen
```

The following command enables a server and listens on port **50001**, and waits for a debugger to connect to it.

```
HyperDbg> .listen 50001
```

### IOCTL

None

### Remarks

This command provides a target debuggee server (guest server), and the host (debugger) will connect to this server by using the '[.connect](https://docs.hyperdbg.org/commands/meta-commands/.connect)' command.

### Requirements

None

### Related

[.connect (connect to a session)](https://docs.hyperdbg.org/commands/meta-commands/.connect)
