# Xml Socket Connecting To Ip Address

**URL:** <https://forum.kirupa.com/t/xml-socket-connecting-to-ip-address/219494>\
**Category:** flash\
**Created:** [March 16, 2007, 11:29pm UTC](https://forum.kirupa.com/t/xml-socket-connecting-to-ip-address/219494 "2007-03-16T23:29:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnfn](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@johnfn](https://forum.kirupa.com/u/johnfn)\
**Post date:** [March 16, 2007, 11:29pm UTC](https://forum.kirupa.com/t/xml-socket-connecting-to-ip-address/219494/1 "2007-03-16T23:29:03Z")

</div>

Here’s my code, shortened a lot:

```auto

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? 🙂

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