---
name: "hosts.txt"
type: topic
source: https://community.bistudio.com/wiki/hosts.txt
revid: 295577
updated: 2021-11-15T22:57:10Z
---

# hosts.txt

The **hosts.txt** file is a special file that lists servers for Real Virtuality games.\
When the multiplayer option is selected, the game will scan the file and list these servers in the multiplayer interface.

### Supported Games

- Operation Flashpoint
- ArmA: Armed Assault
- Arma 2
- Arma 2: Operation Arrowhead
- Take On Helicopters
- Arma 3

### Location

The file has to be manually created in the game's root directory and named **hosts.txt**.

### Format

The content of this file is so that each line is a server, defined as follow:

```
server:port
```

- *server* can be an IPv4 address (e.g `192.168.1.33`) or a DNS name (e.g `arma3.my-server.com`)
- *port* is optional and is set to `2302` by default if it is not defined.

There is no limit to the amount of lines in the file.

### Example

```
192.168.1.33
192.168.1.42:2402
arma3.my-server.com
arma3.my-server.com:2302
```

<sub>Source: [BI Community Wiki — hosts.txt](https://community.bistudio.com/wiki/hosts.txt) (revision 295577).</sub>
