You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links







Actionscript for Multiplayer games

 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


::post new topic::
SecurityError - 2011/02/07 14:02 Hi Guys,
I have some Security questions for you right now i am just testing the connection beetween my server and my flash client. I installed my server the usual way my config file looks like this


## palabre.conf
# Main config file for Palabre

[daemon]
# startdaemon - if 'false', don't start in daemon mode
# and send the log to the console as well as to the log file
# useful with loglevel = debug
# default: true

startdaemon = true

# pidfile - pid file path
# default: /var/run/palabre.pid
# Not used under windows, only for UNIX services

pidfile = /var/run/palabre.pid

# ip - uncomment the following to bind Palabre to a specific ip
# ex: ip = 192.168.1.25
# default (commented or empty): all

#ip =

# port - uncomment the following to bind Palabre to a specific port
# ex: port = 9876
# default (commented or empty): 2468

port = 25255

[logging]
# loglevel - one of: debug, info, warning, error, critical
# default: info

loglevel = info

# logfile - log file path
# default: /var/log/palabre.log
# logfile = ./palabre.log
# If empty Palabre will print every messages in the console

logfile = /var/log/palabre.log


[admin]
# password - uncomment the following to allow root connection
# (useful for some administrative tasks)
# make sure only Palabre admins have access to this file
# ex: password = MetsTaCarpe
# default (commented or empty): no root connection allowed

#password = *********

[crossdomain]
# List domains allowed to connect to this server (separated by spaces)
# Load through : System.security.loadPolicyFile("xmlsocket://foo.com:414");
#

alloweddomains = *

[database]
# If you want to check password to database
# checkpassword = true

usedatabase = false
checkpassword = false

# Database informations for ADODB

# dbType : Possible Values : any from ADODB : mysql, postgres, sqlite, odbc, ...
# But you need the correct module + Adodb to go on ...

dbType = mysql
dbHost = 192.168.1.234
dbUser = root
dbPassword = secret
dbDatabase = test

# Request to use :
# use [LOGIN] and [PASSWORD] for the replacements WITHOUT QUOTES AROUND
# Adodb Will auto quote it
# XML connect node must be : <connect nickname="toto" password="str0ngp4ss" />
# Ex : dbRequest = SELECT * FROM t_logins WHERE login_nickname LIKE [LOGIN] AND login_password LIKE MD5([PASSWORD])

dBRequest = SELECT * FROM t_logins WHERE login_nickname LIKE [LOGIN] AND login_password LIKE MD5([PASSWORD])


[modules]

list = dbQueries,helloworld,simpleLogin


and i forwarded the port 25255 .

So then i just thought i could connect with this





package
{
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
import flash.net.XMLSocket;
import flash.events.DataEvent;
import flash.display.MovieClip;
import flash.text.TextField;
import flash.system.Security;
import flash.events.ProgressEvent;
public class main extends MovieClip
{
private var xmlSocket:XMLSocket;
private var tf:TextField;
public function main():void
{
Security.loadPolicyFile("xmlsocket://myserver.com:80");
// i also tried 25255 as port
tf = new TextField();
addChild(tf);
xmlSocket = new XMLSocket();
xmlSocket.addEventListener(DataEvent.DATA, repo);
xmlSocket.addEventListener(Event.CONNECT, b);
xmlSocket.addEventListener(IOErrorEvent.IO_ERROR, smt);
xmlSocket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, a);
xmlSocket.connect("178.26.52.99", 25255);
xmlSocket.send('<connect nickname="test_1+" ></connect>');
}
private function a(e:SecurityErrorEvent):void
{
tf.text = e.text ;
trace(e.text);
}
private function b(e:Event):void
{
trace("SUCCSSESS JUHA");
tf.text = String(e.target);
}
private function repo(e:DataEvent):void
{
trace(e.data);
tf.text = e.data;
}
private function smt(e:IOErrorEvent):void
{
trace("IOERROR");
tf.text = "IOERROR"
}
}
}

so that dont wanted to work so i tryed to load the security file like this

Security.loadPolicyFile("http://myserver.com/crossdomain.xml");

but there is always the same error called 2048

Pls give me some help its pretty frustrading to work with try and error
  reply | quote
::post new topic::