# How to run .swf in IIS 7

**URL:** <https://forum.kirupa.com/t/how-to-run-swf-in-iis-7/284891>\
**Category:** flash\
**Created:** [March 24, 2009, 7:13pm UTC](https://forum.kirupa.com/t/how-to-run-swf-in-iis-7/284891 "2009-03-24T19:13:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khande](https://avatars.discourse-cdn.com/v4/letter/k/c68b51/32.png) [@Khande](https://forum.kirupa.com/u/Khande)\
**Post date:** [March 24, 2009, 7:13pm UTC](https://forum.kirupa.com/t/how-to-run-swf-in-iis-7/284891/1 "2009-03-24T19:13:01Z")

</div>

Hi,

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](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.
