Forum General Unity3D public ip not connecting via DevelopmentServer

Any issues or discussions relating to Unity development are welcome here.

Unity3D public ip not connecting via DevelopmentServer

Postby jbrettob » March 3rd, 2013, 6:40 pm

Hey, I've been trying to connect to my DevelopmentServer in Unity3D but neither of the following two are working:

Code: Select all
// option 1: public ip via dns
client.Multiplayer.DevelopmentServer = new ServerEndpoint("jbrettob.no-ip.org", 8184);
// option 2: public ip in numbers
client.Multiplayer.DevelopmentServer = new ServerEndpoint("xxx.xxx.xxx.xxx.", 8184);


The following does work for me, but not for the users outside my network (which is obvious)
Code: Select all
// option 1: private ip directly to the server
client.Multiplayer.DevelopmentServer = new ServerEndpoint("192.xxx.xxx.xxx", 8184);



The error I get in returned is:
[_Main] onRoomJoinedError() GeneralError; Unable to connect, errorcode=AccessDenied


Usefull information:
  • Server run on windows pc
  • Port is forward and open via canyouseeme.org
  • No firewall is running on the router nor the server pc

Image
Above image: Players increase each time I try to connect and get the error and eventually leads into a "room is full error".

Is there something that I've missed, because it worked normally via flash using the DNS.
Game Designer & Developer | Flash | AS3 | Unity3D | C#
w: jbrettob.com | blog: blog.jbrettob.com | @jbrettob
User avatar
jbrettob
 
Posts: 19
Joined: April 9th, 2012, 3:51 pm
Location: The Netherlands, Europe

Re: Unity3D public ip not connecting via DevelopmentServer

Postby Benjaminsen » March 4th, 2013, 11:38 am

Unity Requires that a policy file is served by your computer at port 80.
Chances are you are running a local webserver which does not comply with this.

Read more at: http://docs.unity3d.com/Documentation/M ... ndbox.html
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to General



cron