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.
falconovich - 04 May 2006 21:24 GMT
One thing I forgot to mention - the html that contains the swf file is located on the same server that I am trying to connect to via the XMLSocket.
falconovich - 04 May 2006 21:34 GMT
oh and I'm using the latest build of flash 8.
falconovich - 04 May 2006 22:24 GMT
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.