Forum Multiplayer AS3 - Error #2048: Security sandbox violation

Discussion and help relating to the PlayerIO Multiplayer API.

AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 2nd, 2018, 1:19 am

I have been trying to connect over the internet to my dev server all day
Local connection works without any issues
I am connecting with the line below in AS3 where "x" is my servers IP address

client.multiplayer.developmentServer = "xxx.xx.xx.xxx:8184";

Not having any issues connecting with other clients that are not AS3

I have tried every single solution posted online and nothing works
Last edited by KDNGAMES on May 3rd, 2018, 10:04 pm, edited 1 time in total.
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: AS3 - Error #2048: Security sandbox violation

Postby robscherer123 » May 2nd, 2018, 2:26 pm

Sorry if this is obvious question, but are you positive that error is coming from the client.multiplayer.developerServer line? I've never known that to cause the #2048 error. Usually the 2048 error is a Security error related. I've had this error quite a few times for different reasons elsewhere in my code, and it's usually a bit of a pain to resolve. It usually can be fixed with something like Security.allowDomain("*") and/or a few other calls to the Security methods. Sometimes it may be related to a crossdomain.xml file being needed somewhere. I've also seen it related to trying to access an https file from a http hosted swf as well.
robscherer123
Paid Member
 
Posts: 313
Joined: December 12th, 2012, 8:46 pm

Re: AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 2nd, 2018, 5:21 pm

Thanks for the reply,
I know the error isnt coming from that line, but I am pretty sure it's an error in AS3 as I can connect to the server with other applications no problem. its just frustrating that I can not get it to connect with flash no matter what I try. I have been trying to connect for two days now with no luck.
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: AS3 - Error #2048: Security sandbox violation

Postby robscherer123 » May 2nd, 2018, 6:36 pm

Hmm.. What IDE or browser are you testing in? How complex is the project? Is it a very basic starting project that I can test, or is it an entire game and what not at this point?
robscherer123
Paid Member
 
Posts: 313
Joined: December 12th, 2012, 8:46 pm

Re: AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 2nd, 2018, 8:32 pm

Just a basic starting project right now, no browser just testing straight from flash. I do not plan on having the game accessible from browser. However that being said, I have tested it in chrome, firefox And IE with no luck. The testing fla is located at http://www.kdngames.com/MyGame.fla

If you go to http://rmt.kdngames.com the game is available for download now and this is how I plan on having the game function and play, no installation, no browser, no internet required (not including on mode of course)
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: AS3 - Error #2048: Security sandbox violation

Postby robscherer123 » May 2nd, 2018, 9:20 pm

Hmmm, that FLA was having a few issues, but I wasn't receiving any #2048 error with it. Is the #2048 error able to be replicated in that file?
robscherer123
Paid Member
 
Posts: 313
Joined: December 12th, 2012, 8:46 pm

Re: AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 2nd, 2018, 10:23 pm

You wont get the error unless my dev server is active, if you're still available I will be trying again so I will keep the server active. If you download the SDK from playerio and just use the premade newgame.fla file it is pretty much the same file with my testcode removed
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 3rd, 2018, 3:04 am

looks like I need to add the crossdomain.xml file to be accessible when flash connects to my server but playerio does not allow any kind of file hosting service for your server on here so I am at a loss on what to do
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 3rd, 2018, 3:53 am

I have now noticed that I get the same error no matter what IP address I enter
Does this site actually host any servers?
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 3rd, 2018, 4:36 am

Nevermind I got it figured out, thanks anyway
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am

Re: AS3 - Error #2048: Security sandbox violation

Postby Henrik » May 3rd, 2018, 11:44 pm

KDNGAMES wrote:Nevermind I got it figured out, thanks anyway

Just for future reference, what was the error and how did you fix it?
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: AS3 - Error #2048: Security sandbox violation

Postby KDNGAMES » May 12th, 2018, 9:52 am

Henrik wrote:Just for future reference, what was the error and how did you fix it?


I had to add the crossdomain file to the folder that contained the gamecode dll file
PlayerIO\Flash\NewGame\Serverside Code\Game Code\bin\Debug
KDNGAMES
 
Posts: 12
Joined: April 23rd, 2018, 12:17 am


Return to Multiplayer



cron