hosts.txt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "y[ _]*\|[ _]*ofp[ _]*\|[ _]+" to "y|ofp|")
(Page refresh)
Line 1: Line 1:
{{GameCategory|ofp|Multiplayer}}
{{TOC|side}}
'''''Description:'''''
The '''hosts.txt''' file is a special file that lists servers for [[Real Virtuality]] games.<br>
When the multiplayer option is selected, the game will scan the file and list these servers in the multiplayer interface.
 
 
== Supported Games ==
 
* {{GameCategory|ofp|link= y}}
* {{GameCategory|arma1|link= y}}
* {{GameCategory|arma2|link= y}}
* {{GameCategory|arma2oa|link= y}}
* {{GameCategory|tkoh|link= y}}
* {{GameCategory|arma3|link= y}}
 
 
== 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 <tt>192.168.1.33</tt>) or a DNS name (e.g <tt>arma3.my-server.com</tt>)
* ''port'' is optional and is set to <tt>2302</tt> by default if it is not defined.


The '''hosts.txt''' file is a special file that Operation FlashPoint, ARMA, ARMA 2, ARMA2: Operation Arrowhead recognizes.
There is no limit to the amount of lines in the file.


When you select the multi-player option, engine will scan this file for you and list those servers for you.


You will need to create this file by making a new text file in the root of your game folder and calling it '''hosts.txt'''
== Example ==


The syntax of the file is as follows:
192.168.1.33
192.168.1.42:2402
arma3.my-server.com
arma3.my-server.com:2302


IP:port
dnsname.com:port number
192.168.1.1:2302
The list can be as long as you like. Port number is optional, default 2302 is used when not specified.


[[Category:Multiplayer Hints and Tips]]
[[Category:Multiplayer Hints and Tips]]
{{GameCategory|ofp|Multiplayer}}
{{GameCategory|arma1|Multiplayer}}
{{GameCategory|arma2|Multiplayer}}
{{GameCategory|arma2|Multiplayer}}
{{GameCategory|arma1|Multiplayer]]
{{GameCategory|arma3|Multiplayer}}
[[Category:Take On Helicopters}}
{{GameCategory|tkoh}}

Revision as of 18:09, 31 October 2021

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


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