• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by whyunoworkunity · Sep 27, 2012 at 10:10 PM · errornetworkportmaster servernat

How do I setup the Unity Network Connection Facilitator

I'm having an excruciating problem with Unity3D's networking features.

I've set up a Facilitator and Master Server on a publicly accessible IP address and verified that the address is reachable and the ports are open.

I'm able to have two players join and play in my game where one is the server and the other is the peer, with the server registering its game on the master server and the peer polling the master server for a game list, and then joining the correct game.

However, if I then specify the connection facilitator port and IP like this:

Network.natFacilitatorPort = connectionFacilitatorPort; Network.natFacilitatorIP = connectionFacilitatorIPAddress;

Nothing bloody works anymore! I simply get a message saying that the game isn't able to connect to the facilitator. This is misleading, because the port is open, the facilitator is running, and if I deactivate the faciliator, and run the master server on the facilitator's port everything works. The faciliator log/console window however is not reporting any activity.

The specific error I'm getting is:

"The connection request to xxx.xxx.xxx.xxx:5887 failed. Are you sure the server can be connected to?"

The master server and facilitator reside on the same server / IP address, the master server uses port 5886 and the facilitator uses port 5887 and both ports appear connectable. I'm using the default connection tester setup as I don't have 3 extra IP addresses to spare right now. The network connection tester returns the enum ConnectionTesterStatus.LimitedNATPunchthroughPortRestricted, which suggests that NAT punch through might work, however I'm not even getting to that point when the facilitator port/address is specified.

It seems like I've left out some fundamental configuration setting, perhaps the facilitator can't run on the same IP as the master server? I dunno, I'm just grasping at straws here having already fought for 8 hours with monodevelop and the atrocity that is developing with it and Unity on a Mac. So my mind is pretty cooked at this point.

What have I missed?

[Update]

The connectivity issues appear to be caused by our windows server and firewall, as when I attempted to setup the proxy server, it also was not able to connect to the facilitator. When I mirrored the setup on my workstation the two were able to communicate. If I figure out what caused this I'll post the solution here, along with exactly how I setup the master server, facilitator and proxy, as there simply isn't any useful information out there at the moment on how to get this stuff working.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image geronika2004 · Apr 16, 2013 at 01:38 PM 0
Share

So, finally facilitator and master server can run on the same machine? And if using facilitator players should not make port forwarding am I right?

avatar image burkedrane · Aug 23, 2013 at 08:53 PM 0
Share

Did you figure this out? We are having a similar issue, but our server does have 4 public IPs.

avatar image whyunoworkunity · Aug 26, 2013 at 01:15 PM 0
Share

Burkedrane - we never figured it out fully. Sometimes the connection would be successful between two machines across firewalls, other times it would fail simply across our two company networks. The $$anonymous$$aster Server also had a habit of crashing randomly, and there were some bugs right in the main cpp file that meant errors weren't even always being reported (I can't quite remember what they were, something about it trying to initialise the connection even when an earlier step had failed, it's been a while).

Sadly, the conclusion we came to was that, at least for that build, Unity's networking solution was buggy, complex in its methods of failure and not in the least bit useful for facilitating a stable connection.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Networking ? 2 Answers

Having trouble with buffered RPCs. Getting error "Couldn't invoke RPC function 'BroadcastName' because the networkView 'SceneID: 10 Level Prefix: 0' doesn't exist" 0 Answers

Can't Establish connection using NetworkTransport 0 Answers

How connect client to server when ip is private ? 2 Answers

Create server without port 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges