<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=Port_Usage</id>
	<title>Port Usage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=Port_Usage"/>
	<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=Port_Usage&amp;action=history"/>
	<updated>2026-08-06T00:04:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://bf2tech.uturista.pt/index.php?title=Port_Usage&amp;diff=9&amp;oldid=prev</id>
		<title>UTurista: Creating page</title>
		<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=Port_Usage&amp;diff=9&amp;oldid=prev"/>
		<updated>2017-09-09T23:02:25Z</updated>

		<summary type="html">&lt;p&gt;Creating page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Pre-face ==&lt;br /&gt;
&lt;br /&gt;
EA says the following ports are used by BF2, But the list is suspect for several reasons. The original list was published in a community news letter on EA&amp;#039;s official BF2 page, and was a hode podge of ports, now I can&amp;#039;t seem to find that community update again, if anyone bookmarked it please let us know the url&amp;lt;br&amp;gt;&lt;br /&gt;
Here is a tentative list:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|+&amp;#039;&amp;#039;&amp;#039;BF2 Server Ports&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
! Protocol !! Ports !! In/Out !! Function&lt;br /&gt;
|-&lt;br /&gt;
| TCP || align=right | 80 || align=center | ??? || Battle Recorder / PunkBuster&lt;br /&gt;
|-&lt;br /&gt;
| TCP || align=right | 4711 || align=center | IN || Remote console&lt;br /&gt;
|-&lt;br /&gt;
| ??? || align=right | 4712 || align=center | ??? || BF2 CC Daemon&lt;br /&gt;
|-&lt;br /&gt;
| UDP || align=right | 27901 || align=center | IN || Stats port&lt;br /&gt;
|-&lt;br /&gt;
| UDP || align=right | 1500-4999 || align=center | ??? || &amp;quot;General use&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| UDP/TCP || align=right | 1024-1124 || align=center | ??? || &amp;quot;General use&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| UDP || align=right | 29900 || align=center | ??? || Server status (Gamespy)&lt;br /&gt;
|-&lt;br /&gt;
| UDP/TCP || align=right | 27900 || align=center | ??? || Stats port&lt;br /&gt;
|-&lt;br /&gt;
| UDP || align=right | 16567 || align=center | IN || PunkBuster&lt;br /&gt;
|-&lt;br /&gt;
| UDP || align=right | 55123-55125 || align=center | IN/OUT || VoIP&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve done some research on ports used and such, please contribute on the [[What Ports]] page if you got updates/erratas&lt;br /&gt;
&lt;br /&gt;
== Firewalling Your Server ==&lt;br /&gt;
&lt;br /&gt;
This is from the readmeserver.txt&lt;br /&gt;
&lt;br /&gt;
 FIREWALL&lt;br /&gt;
 &lt;br /&gt;
 The use of a software firewall on the server is not recommended,&lt;br /&gt;
 as it can adversely affect server performance and the overall&lt;br /&gt;
 gameplay experience.&lt;br /&gt;
&lt;br /&gt;
Ignore this. Running a server on the internet without a firewall is like &amp;lt;code&amp;gt;insert favourite allegory about being sodomized here&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to firewall your server ===&lt;br /&gt;
&lt;br /&gt;
Two ways to do this:&lt;br /&gt;
&lt;br /&gt;
;External firewall:You have a machine that all traffic has to pass through to get to your server (my favourite)&lt;br /&gt;
;Local Firewall:You are running a firewall on the same server as you have the server (uses local CPU,so not the best way)&lt;br /&gt;
&lt;br /&gt;
We will NOT go into the rigamole on HOW to set up a firewall for your system here, lots of other sites cover this.&lt;br /&gt;
What we will attempt to cover here is the specific rulesets that are needed for a BF2 server to work properly.&lt;br /&gt;
=== External Firewall ===&lt;br /&gt;
We need more info here folks!&lt;br /&gt;
=== Local Firewall ===&lt;br /&gt;
==== Linux Iptables ====&lt;br /&gt;
This ruleset allows my server to be seen in the server browser list, people can join it AND use VOIP&lt;br /&gt;
Note that this is a stander server, only one BF2 server on the machine, and no hank panky with ports&lt;br /&gt;
used and such&lt;br /&gt;
 iptables -A &amp;lt;ChainName&amp;gt; -m udp -p udp -m multiport --dports 29900,29901,29902,29903,29904,16567,55125 -j ACCEPT&lt;br /&gt;
 iptables -A &amp;lt;ChainName&amp;gt; -m tcp -p tcp -m multiport --dports 4711 -j ACCEPT &lt;br /&gt;
 iptables -A &amp;lt;ChainName&amp;gt; -m udp -p udp --sport 29910 -s 207.38.8.27 -j ACCEPT&lt;br /&gt;
 iptables -A &amp;lt;ChainName&amp;gt; -m udp -p udp --sport 29910 -s 207.38.8.28 -j ACCEPT&lt;/div&gt;</summary>
		<author><name>UTurista</name></author>
	</entry>
</feed>