all groups > macromedia flash flash remoting > may 2006 >
You're in the

macromedia flash flash remoting

group:

Can't connect with XMLSocket


Can't connect with XMLSocket falconovich
5/4/2006 7:43:31 PM
macromedia flash flash remoting:
I am using XMLSocket to connect to a server application. The server app. is
binding using the host name and port 1025. I can connect to the server app
using tcp from other client machines w/ no problems. I am unable to connect to
the server using XMLSocket. Looking at the TCP packet sniff the XMLSocket
sends a request on the correct port asking for sync the sequence numbers and
the server responds w/ the appropriate Ack. The XMLSocket clients then Ack's
the sync and then Ack's w/ the "no more data from sender" bit set which
effectively closes the connection (and the onConnet handler returns false).

I don't understand why the XMLSocket on the client machine is immediately
closing the connection. The server should be configured correctly since other
tcp socket app's can connect to the same port w/ no problems.

I have tried from multiple client machines and in each case other tcp app's
work but XMLSocket gives the same behavior. There are no virus scanning or
firewall programs enabled on the server.

Does anyone know why XMLSocket would initiate a connection and then
immediately drop it? I've tried enabling the flashlog but I don't see any
relevant traces.
Re: Can't connect with XMLSocket falconovich
5/4/2006 8:24:37 PM
Re: Can't connect with XMLSocket falconovich
5/4/2006 8:34:15 PM
Re: Can't connect with XMLSocket falconovich
5/4/2006 9:24:58 PM
One more fun fact (I promise this is the last one). If I use XML.sendAndLoad I
can take to the same tcp server w/ no problems.

Why does XML.sendAndLoad work but XMLSocket.connect fail when running against
the same server? These both should be use TCP based sockets right?

I likely will just hack my design to use HTTP as the protocol so I can use
sendAndLoad but if anyone has any ideas as to what is going on here I would
love to hear them.
AddThis Social Bookmark Button