PDA

View Full Version : XMLSock Connection Question


Raygoe
07-20-2007, 02:39 AM
I was wondering: is it possible to connect through a hosted domain (Like my provider: hostgator) to a Visual Basic Winsock server on my machine.

I have tried, the XMLSocket successfully connects both ways, but not when they're uploaded.

I've tried Cross-Domain, I've tried the allowAccess. I'm stumpted, got any ideas?

sneakyimp
07-22-2007, 09:48 AM
what do you mean by 'the XMLSocket successfully connects both ways but not when uploaded' ?

The basic idea with flash and sockets is that flash can connect to a socket if there is some socket server or daemon out there listening for connections. Generally speaking, this means that you have to be able to run a daemon on the server. My feeling is that this is not super likely with a large hosting provider, but you never know.

I've had some luck writing a socket server in PHP and hope to publish a tool soon to help people write multiplayer games in Flash. It's in super-beta mode right now but I plan to release it open source very soon. Let me know if you're interested.

SilverVenom
07-22-2007, 02:14 PM
If your swf is hosted on your site, while the server is on your own computer, I think you will have to make a crossdomain policy file, otherwise flash won't be able to connect. Maybe a small webserver on your home computer which serves up a crossdomain file, and also be sure to have a crossdomain policy file in your server root.