How to run .swf in IIS 7


I have created 'Socket’which will connect to port 5080 on a server. (A java server code is already listening on that port). Now this .swf is placed inside .htm file which is placed on the server root folder.

When I run (double clicking) the file (*.htm) the flash code runs very fine (also when I compile Flash file it runs perfectly) [COLOR=Black]BUT when I call that file from localhost (http://localhost/file-name.htm) then the flash code don’t work[/COLOR]. (I also tried using crossdomain.xlm)

Can any-one tell me the reason? Is it happening because IIS don’t allow user to communicate with any port other than 80? Security reasons?

Any help appreciated.