# Starting with XML Sockets

**URL:** https://forum.kirupa.com/t/starting-with-xml-sockets/116437
**Category:** Uncategorized
**Created:** [July 18, 2004, 4:59am UTC](https://forum.kirupa.com/t/starting-with-xml-sockets/116437 "2004-07-18T04:59:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![richmulhern](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@richmulhern](https://forum.kirupa.com/u/richmulhern)
#### Post date: [July 18, 2004, 4:59am UTC](https://forum.kirupa.com/t/starting-with-xml-sockets/116437/1 "2004-07-18T04:59:54Z")

</div>

Hello,

```
 I've begun playing with Flash and XML Socket Servers and I thought I started taking to it easy, but now I'm running into some problems and I'm a bit confused! I was able to connect and disconnect to a socket server I wrote and Unity but I seem to be having problems sending and/or recieveing data.

```

I wrote a small amount of code to try it out:

var server:XMLSocket = new XMLSocket();  
server.connect(“66.194.238.241”,10000);

server.onConnect = function(success:Boolean) {  
trace(success);  
}

\_root.onMouseDown = function(success:Boolean) {  
server.send(“Sent Data!”);  
}

server.onXML = function() {  
trace(“Got Data!”);  
}

It seems to be connecting fine but when I click and I try my send, I get no reaction at all! Thanks!
