Xml Socket Connecting To Ip Address

Here’s my code, shortened a lot:


var mySocket:XMLSocket = new XMLSocket();
mySocket.connect("<my ip address here>", 9999);
mySocket.onConnect = function(success) {
if (success != true) {
tx.text = "Server cannot be reached.";
}
};

Alright, well this code works fine and dandy when I run the flash from my computer. But when I upload it on the internet it stops working. There’s probably something wrong about the flash security model or something that I’m unaware of… Anyone want to explain? :slight_smile:

Btw, treat me as an utter XMLSocket noob, as I am one. I’ve only been using them for a week or so.