x


How can I find out what ports I need to open on the Firewall?

I am trying to get Unity's Networking example project to run over our network, but I'm not getting a response of any kind (after hosting a server, no games appear on any connected machine). As it is the company network, the firewall controls are like a maximum security prison. I can get this sorted with the relevant tech staff, but I need to know what ports it is using and such.

How can I find out what ports need opening? Are they determined by Unity's architecture, or somewhere in the scripts?

I am using a Webplayer build of Unity's Networking Example.

Thanks!

more ▼

asked Dec 24 '09 at 01:56 PM

Novodantis 1 gravatar image

Novodantis 1
1.7k 14 22 40

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

A few ports you need to open:

Its http://masterserver.unity3d.com with port 23456 and http://facilitator.unity3d.com with port 50001, both UDP. Both names point to 83.221.146.11 at the moment but if either or both servers are moved then the DNS names will always point to the correct IP.

From larus: UT Master Server info?

In fact, the IP-address of the masterserver has changed and is now: 72.52.207.14. The IP-address of the facilitator is the same (also 72.52.207.14). Of course, you could also use your own MasterServer, ConnectionTester and Facilitator and in that case define your own ports (and use your own IPs).

You can define the port your game server uses in CreateServer:

you specify the port in the CreateServer(...) function and can be pretty much any portnumber, well any 16-bit number anyway (its always good to check up on http://IANA.com, to avoid common ports) usually anywhere from 5000 to 48000 or so should be pretty "safe" port numbers.

From perlohmann: Unity ports and custom server setup

In general, you'd always open UDP (but to be safe, you may consider also opening TCP if UDP only fails ;-) ).

more ▼

answered Dec 24 '09 at 02:52 PM

jashan gravatar image

jashan
10.1k 25 40 116

Thanks very much, sorry it took so long to get back to you! :)

Jan 13 '10 at 11:32 AM Novodantis 1

No problem - better late than never ;-)

Jan 13 '10 at 10:42 PM jashan
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x697

asked: Dec 24 '09 at 01:56 PM

Seen: 3100 times

Last Updated: Dec 24 '09 at 01:56 PM