hosts.txt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "<tt>([a-zA-Z0-9\. _"\\'=-]+)<\/tt>" to "{{hl|$1}}")
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[category:Operation FlashPoint:_Multiplayer||h]]
{{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.


The '''hosts.txt''' file is a special file that Operation FlashPoint recognizes.


When you select the multiplayer option, OFP will scan this file for you and list those servers for you.
== Supported Games ==


You will need to create this file by making a new text file in the root of your OFP folder and calling it '''hosts.txt'''
* {{GameCategory|ofp|link= y}}
* {{GameCategory|arma1|link= y}}
* {{GameCategory|arma2|link= y}}
* {{GameCategory|arma2oa|link= y}}
* {{GameCategory|tkoh|link= y}}
* {{GameCategory|arma3|link= y}}


The syntax of the file is as follows:


  IP:port
== Location ==
dnsname.com:port number
 
  192.168.1.1:2302
The file has to be manually created in the game's root directory and named '''hosts.txt'''.
The list can be as long as you like. Port number is optional, default 2302 is used when not specified.
 
 
== 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 {{hl|192.168.1.33}}) or a DNS name (e.g {{hl|arma3.my-server.com}})
* ''port'' is optional and is set to {{hl|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
 
 
[[Category:Multiplayer Hints and Tips]]
{{GameCategory|ofp|Multiplayer}}
{{GameCategory|arma1|Multiplayer}}
{{GameCategory|arma2|Multiplayer}}
{{GameCategory|arma3|Multiplayer}}
{{GameCategory|tkoh}}

Latest revision as of 00:57, 16 November 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