Archive

Monthly Archives: June 2013

If you have some flash application talking to back-end via TCP, then it would be useful for you to launch special cross domain policy server on 843 port:

sudo bash -c “exec nohup setsid node policy_server.js 0<&- &”

// policy_server.js
var server = require(“net”).createServer(function(socket) {
    socket.on(‘error’, function(err) {});
    socket.end(‘<cross-domain-policy><allow-access-from domain=”*” to-ports=”*”/></cross-domain-policy>’);
});
server.on(‘error’, function(err) {});
server.listen(843);