{"name":"hosts.txt","title":"hosts.txt","type":"topic","url":"https://community.bistudio.com/wiki/hosts.txt","revid":295577,"updated":"2021-11-15T22:57:10Z","aliases":[],"markdown":"The **hosts.txt** file is a special file that lists servers for Real Virtuality games.\nWhen the multiplayer option is selected, the game will scan the file and list these servers in the multiplayer interface.\n\n### Supported Games\n\n- Operation Flashpoint\n- ArmA: Armed Assault\n- Arma 2\n- Arma 2: Operation Arrowhead\n- Take On Helicopters\n- Arma 3\n\n### Location\n\nThe file has to be manually created in the game's root directory and named **hosts.txt**.\n\n### Format\n\nThe content of this file is so that each line is a server, defined as follow:\n\n```\nserver:port\n```\n\n- *server* can be an IPv4 address (e.g `192.168.1.33`) or a DNS name (e.g `arma3.my-server.com`)\n- *port* is optional and is set to `2302` by default if it is not defined.\n\nThere is no limit to the amount of lines in the file.\n\n### Example\n\n```\n192.168.1.33\n192.168.1.42:2402\narma3.my-server.com\narma3.my-server.com:2302\n```","sections":[{"heading":null,"level":1,"markdown":"The **hosts.txt** file is a special file that lists servers for Real Virtuality games.\nWhen the multiplayer option is selected, the game will scan the file and list these servers in the multiplayer interface."},{"heading":"Supported Games","level":3,"markdown":"- Operation Flashpoint\n- ArmA: Armed Assault\n- Arma 2\n- Arma 2: Operation Arrowhead\n- Take On Helicopters\n- Arma 3"},{"heading":"Location","level":3,"markdown":"The file has to be manually created in the game's root directory and named **hosts.txt**."},{"heading":"Format","level":3,"markdown":"The content of this file is so that each line is a server, defined as follow:\n\n```\nserver:port\n```\n\n- *server* can be an IPv4 address (e.g `192.168.1.33`) or a DNS name (e.g `arma3.my-server.com`)\n- *port* is optional and is set to `2302` by default if it is not defined.\n\nThere is no limit to the amount of lines in the file."},{"heading":"Example","level":3,"markdown":"```\n192.168.1.33\n192.168.1.42:2402\narma3.my-server.com\narma3.my-server.com:2302\n```"}],"categories":["ArmA: Armed Assault: Multiplayer","Arma 2: Multiplayer","Arma 3: Multiplayer","Multiplayer Hints and Tips","Operation Flashpoint: Multiplayer","Take On Helicopters"],"groups":["Multiplayer and Server"]}