# XMLSocket - Flash player can't receive data from server

**URL:** <https://forum.kirupa.com/t/xmlsocket-flash-player-cant-receive-data-from-server/309912>\
**Category:** flash\
**Created:** [May 27, 2010, 3:22pm UTC](https://forum.kirupa.com/t/xmlsocket-flash-player-cant-receive-data-from-server/309912 "2010-05-27T15:22:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadiyoosuf](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@fadiyoosuf](https://forum.kirupa.com/u/fadiyoosuf)\
**Post date:** [May 27, 2010, 3:22pm UTC](https://forum.kirupa.com/t/xmlsocket-flash-player-cant-receive-data-from-server/309912/1 "2010-05-27T15:22:11Z")

</div>

Hi

I used XMLSocket to send and receive data from a local tcp server.

I could successfully connect and send data to the tcp server.

But I can’t receive data from tcp server using both socket.onXML method and socket.onData method.

When I put the tcp server in echo mode and I send data from flash to the server, I could receive the echoed data in both onXML and on Data method.

What might be the reason I am not able to receive data in flash player when data is sent explicitly from tcp server.

TCP server has no issue as I could receive data sent by the server in other client applications.

I am using Adobe Flash CS4 version.

Thank you

regards  
Fadi Yoosuf
