ColdFusion Manual Configuration & Issues with TCP ports 51011, 51010 and 51800 on IIS and Apache

ColdFusion works by configuring your web server (IIS, or Apache) to execute files with known extensions (.cfm, .cfml, .cfc et al) to run as script. And for doing that ColdFusion comes with a small and important tool called “wsconfig”.

Problem: At times, regardless of operating system and the web server you are using, the ColdFusion installation will fail to configure web-server due to your network settings or firewall/security settings. When running wsconfig tool, you may encounter errors similar to the following:

  • Could not connect to any JRun/ColdFusion servers on host localhost.
    • Possible causes:
      • Server not running
        - Start Macromedia JRun4 or ColdFusion server
      • Server running
        - JNDI listen port in blocked by TCP/IP filtering or firewall on server
        - host restriction in blocking communication with server


Snapshot above shows one of the common scenario when wsconfig will not configure IIS.

Solution: Here is one fail proof solution to complete the installation of ColdFusion and stop worrying about getting wsconfig to… “run”. Yes, you we will not run “wsconfig”. Instead, we will manually configure web-servers and manually create files that are created by wsconfig.

Let’s first take into account the files that are created or modified by wsconfig:

  1. Create – The wsconfig tool will create a .store file that the jrun server uses to store port number for connecter to work with your server. Port number for CFMX 6.1 is 51010. Port for CF 7.0 is 51011. And port for CF 8 and CF 9 is 51800. You can check the port number for your machine in jrun.xml file stored in cf_root\runtime\servers\coldfusion\SERVER-INF\jrun.xml – search for “ProxyService” in this file and under the <service> tag you will find <attribute name="port">YOUR PORT NUMBER</attribute>.
  2. For IIS, creates jrun.ini or jrun_iis6.ini – Only when configuring IIS on Windows. For IIS4 and IIS5, a jrun.ini file is created. For later versions, i.e. for IIS6 and II7 jrun_iis6.ini file is created.   
  3. For Apache, modifies httpd.conf – Only when configuring Apache server. The httpd.conf file is part of Apache. Its the web-server configuration file and this file is modified by wsconfig tool so that Apache will load or depending on version of ColdFusion.


Let’s Just Do It Manually

  • Open jrun.xml file found at cf_root\runtime\servers\coldfusion\SERVER-INF\. Edit the file, find “ProxyService” and change value of deactivated to true. Like shown in the snapshot below. 
  • After you have edited the above XML file, you must restart the ColdFusion Application server.
  • Create file – this file is created by wsconfig tool to store the list of servers it has configured. Take a look at the following snap-shot – the wsconfig tool will store two records in file when you have both IIS and Apache configured. So, if you have just one server configured then only one record is saved in the file and the same is shown in the tool. 
    • Create file at cf_root/runtime/lib/wsconfig
    • Edit the file to contain following information depending on your server:
      • For IIS:
        • For ColdFusion 7+
          1 =IIS,1,false,""
          1 .srv=localhost,"coldfusion"
        • For ColdFusion MX 6.1, instead of the above line, enter:
          1 =IIS,1,false,""
          1 .srv=localhost,"default"
      • For Apache:
        • On Windows:
          1=Apache,C:/Apache Group/Apache2/conf,"","",""
          1 .srv=localhost,"coldfusion"
        • On Unix:
          1 .srv=localhost,"coldfusion"
  • Extract connector files (DLL or SO files) from wsconfig.jar: The wsconfig tool will extract the DLL files from wsconfig.jar file. Which files are extracted depends on the server you are running. When you are running IIS4 or IIS5 or IIS6 or IIS7 the wsconfig tool will extract *.dll files specific for your version. When running Apache, specific *.so file for your version is extracted.  Now, lets look into specific details for each server and see what files are extracted for a specific web server:
  • IIS 6 and IIS 7 configuraton: wsconfig-folder-1

    1. Extract jrunwin32.dll and jrun_iis6.dll from cf_root\runtime\lib\wsconfig.jar and copy them to cf_root\runtime\lib\wsconfig\.
    2. Extract jrun_iis6_wildcard.dll from cf_root\runtime\lib\wsconfig.jar and copy it to cf_root\runtime\lib\wsconfig\1.
    3. Create a jrun_iis6_wildcard.ini file in cf_root\runtime\lib\wsconfig\1. It should contain the following information: 

      serverstore=cf_root/runtime/lib/wsconfig/1/ (use absolute path. see note below)
      bootstrap= (port number differs by version of ColdFusion server. see note below)
      #errorurl=<optionally redirect to this URL on errors>


      • serverstore above should point to actual JRun 4 installation
      • bootstrap port number for ColdFusion 9 is 51800, for ColdFusion 7 and 8 port number is 51011. And, for ColdFusion 6 the port number is 51010.
    4. Create the file in cf_root\runtime\lib\wsconfig\1. Edit as follows:

      proxyservers= ( for MX 6.1; for MX 7)
  • Specific for IIS 6:
    1. Using the IIS Management Console, add a new Web Service Extension named Macromedia Server Extensions. Set the status to Allowed. Set Required Files to
      cf_root\runtime/lib\wsconfig\1\jrun_iis6_wildcard.dll and cf_root\runtime\lib\wsconfig\jrun_iis6.dll.
    2. Right-click on the website you are connecting and select the properties. Select the Home Directory tab and click on the Configuration button. Add extension mappings in the Application extensions for .cfc, .cfm, .cfml, .cfr, .cfswf,.jsp and .jws. Point all of them to cf_root\runtime\lib\wsconfig\jrun_iis6.dll.
    3. In the Wildcard application maps at the lower half of the same window, insert the following:
  • Specific or IIS 7:
    1. Under the IIS Management Console, click on your computer name, click on “ISAPI and CGI Restrictions” and add two entries: one for cf_root\runtime/lib\wsconfig\1\jrun_iis6_wildcard.dll and the other for cf_root\runtime\lib\wsconfig\jrun_iis6.dll. Set both to allowed.
       ISAPI and CGI Restrictions
    2. Click on your computer name and click on “Handler Mappings” and add one “Wildcard Script Map”:
    3. After adding wildcard script map, add script handlers for *.cfm files:
      Add Script Map 
    4. Add other file extensions that are supported by your version of ColdFusion. For ColdFusion 9, you will add the following script handler mappings (*.jsp, *.jws, *.cfml, *.cfc, *.cfr, *.cfswf, *.hbmxml):

  • IIS 4 or IIS 5 configuration:

    1. Extract jrunwin32.dll from cf_root\runtime\lib\wsconfig.jar and copy it to cf_root\runtime\lib\wsconfig\.
    2. Extract jrun.dll from cf_root\runtime\lib\wsconfig.jar and copy it to cf_root\runtime\lib\wsconfig\1.
    3. Create a jrun.ini file in cf_root\runtime\lib\wsconfig\1. It should contain the following information:

      scriptpath=/JRunScripts/jrun.dll (must be a valid URL. see note below)
      serverstore={cf-root}/runtime/lib/wsconfig/1/ (use absolute path. see note below)
      bootstrap= (port number varies by version of CF. see note below)
      #errorurl=<optionally redirect to this URL on errors>


      • scriptpath above points to /JRunScripts/jrun.dll and it must be a valid URL. Using the IIS Management Console, add a virtual directory named JRunScripts to the website. The Local Path property of the folder should point to cf_root\runtime\lib\wsconfig\1 and Execute Permissions must be set to "Scripts and Executables"
      • serverstore above should point to actual JRun 4 installation
      • bootstrap port number for ColdFusion 9 is 51800, for ColdFusion 7 and 8 port number is 51011. And, for ColdFusion MX 6.1 the port number is 51010.
    4. Add the JRunConnector Filter to the ISAPI Filter properties of the website:
    1. Right-click on the website.
    2. Select the ISAPI Filters tab.
    3. Click the Add button.
    4. In the Filter Name text box, enter "JRun Connector Filter".
    5. In the Executable text box, browse to or enter "cf_root\runtime\lib\wsconfig\1\jrun.dll".
    6. Select the Home Directory tab and click on the Configuration button. Add extension mappings in the Application extensions for .cfc, .cfm, .cfml, .cfr, .cfswf, jsp and .jws. Point all of them to cf_root\runtime\lib\wsconfig\1\jrun.dll.
    7. Restart the World Wide Web Publishing service from the Windows Control Panel and check the ISAPI Filter property for the website. The JRun Connector Filter should show a high priority with a green arrow pointing upwards.
  • For Apache web server:

    1. Extract the .SO file file for your Apache server version from wsconfig.jar file. In the screenshot above you will see that has been extracted. supports Apache 2.x web servers. To connect to Apache 1.3.x, use
    2. Create file under cf_root\runtime\lib\wsconfig\1 directory with the following files: - Create a file called and enter the following information:
      • For ColdFusion MX 6.1:
      • For ColdFusion MX 7:
      • For ColdFusion 8 and ColdFusion 9
    3. Edit the Apache configuration file (located in apache_install_directory/conf/httpd.conf) and add the following section at the end of the file:
      # JRun Settings
      LoadModule jrun_module "cf_root/runtime/lib/wsconfig/2/"
      <IfModule mod_jrun22.c>
          JRunConfig Verbose false
          JRunConfig Apialloc false
          JRunConfig Ignoresuffixmap false
          JRunConfig Serverstore "cf_root/runtime/lib/wsconfig/2/"
          JRunConfig Bootstrap
          #JRunConfig Errorurl url <optionally redirect to this URL on errors>
          #JRunConfig ProxyRetryInterval 600 <number of seconds to wait before trying to reconnect to unreachable clustered server>
          #JRunConfig ConnectTimeout 15 <number of seconds to wait on a socket connect to a jrun server>
          #JRunConfig RecvTimeout 300 <number of seconds to wait on a socket receive to a jrun server>
          #JRunConfig SendTimeout 15 <number of seconds to wait on a socket send to a jrun server>
          AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf


      • LoadModule jrun_module must point to actual location of .so file using absolute path.
      • JRunConfig Serverstore must point to actual location of .store file created in step #2.
      • JRunConfig Bootstrap must use the correct port number. For ColdFusion 9 use 51800. For MX 7 use 51011 and for MX 6.1 use 51010.
    4. Restart the Apache web server.


If you are on IIS, you might have to restart the IIS web server, but in most cases you won’t have to.

Now, you’re finished configuring your ColdFusion server with your web server without running wsconfig tool. This will help those who find that wsconfig is failing to configure their web servers. Phew!


  1. Thanks for your post.

    But CF8 port number makes me confused, sometimes you mentioned it is 51011 (port number for ColdFusion 9 is 51800, for ColdFusion 7 and 8 port number is 51011)

    or 51800 (For ColdFusion 8 and ColdFusion 9
    proxyservers= )

    I think is 51800, correct?


  2. Sameer,

    Thanks so much for you post! Followed it carefully and was able to get my Coldfusion 6.1 running on our Windows 2008 Server 64bit. Awsome! Thanks again.

  3. Nice write up... You seem to have one typo. JRunProxyService should be activated, so "deactivated" should be set to "false" not "true" as you have it. (I've tried setting it to true and I get http 503 error: Could not connect to JRun Server).

    Another thing... I have a CF7 running on IIS 7.5 (Windows Server 2008 R2, which only comes in 64bit flavor) It might be worth mentioning that in any flavor of 64bit Windows, the AppPool that CF7 runs in must be set to "Enable 32-bit Applications". Not sure about CF8, but I suspect that's also has a 32bit dll.

  4. FYI, here is an alternative configuration for CF7 on IIS 7.5 - Windows 2008 R2 (It will most likely work on other CF and IIS combinations). It's a bit more complicated, but I recommend it for production servers as it has some security and performance advantages.

    1) Skip (Remove) Wildcard Script Map setup in Handler Mappings.

    2) When adding Script Maps for *.cfm, *.cfc, etc use jrun_iis6_wildcard.dll (jrun_iis6.dll won't work). For each Script Map in Request Restrictions check "File" under "Invoke handler only if request is mapped to".

    The advantage of such setup is that IIS handles all your 404 errors including for *.cfm and other CF mapped file extensions. You can have per site 404 custom pages instead of having to rely on server-wide CF "Missing Template" page for all .cfm 404s. Second, your /CFIDE/Administrator will not be accessible through any of your sites (unless you add a Virtual directory through IIS). Third, I was not able to find out if there is a performance penalty associated with having Wildcard Script Map for CF connector but it is a well known fact that there is a performance penalty when using ASP.NET Wildcard Script Map. At any rate, with my setup CFusion does not process/handle any static files (.htm, jpg, gif, etc).

    If you are using CFCHART, Flash Remoting, and some other servlets (see servlet-mappings in cfwwwroot/WEB-INF/web.xml) you will need to optionally add these on per site basis:

    3) CFCHART invokes GraphServlet servlet which is mapped to /CFIDE/GraphData.cfm. The solution is simple: In root of your site create CFIDE folder and in it create empty GraphData.cfm file. While you are at it, create a virtual directory "scripts" in your newly created CFIDE folder and point it to "real" /CFIDE/scripts folder. This will assure that various .js, .swf scripts used in CFFORM are available. (Not sure if you need any other mappings for CFGRID, CFTREE, CFSLIDER, etc)

    4) Flash Remoting (FlashGateway servlet) invokes /flashservices/gateway. Solution: In your site root create empty flashservices folder. In IIS Handler Mappings for that folder edit your CFC (or any other CF) mapping and change path from "*.cfc" to "gateway", also uncheck map to File in Request Restrictions. Flash remoting now works.

  5. Daniel, thanks for your inputs. You seem to have spent quite some time tinkering with the installation process.

  6. i've been trying to install CF9 64bit in a Windows Server 2008 64bits running plesk. I followed your instructions but still have, when trying to get to the admin page: "HTTP Error 404.17 The requested content appears to be script and will not be served by the static file handler" with call to "Requested URL
    Physical Path D:\inetpub\vhosts\default\htdocs\CFIDE\administrator\index.cfm
    Any idea?
    thanks a lot

  7. @Isabelle,

    Can you download CF 9.0.1 installation? It doesn't require any IIS6 metabase and management features. Follow instructions here:

  8. Thank you so much! you got me up and running!

  9. Hola a todos, bueno yo tengo un problema con CF MX7 y apache 2.2, intale apache y corria perfectamente pero al instalar CF no se puede iniciar el servicio, por x razon el apache lo necesito en un puerto diferente al 80 (le puse el 5000). Los servicios de CF si me aparecen iniciados pero el de apache no. ¿Alguna idea?

  10. I get "HTTP Error 404.17 - Not Found" with error code:0x80070032, when i open my coldfusion admin url i.e.
    My iis version is 7, coldfusion 9 with update 9.01, windows 7 64bit.
    plz help

  11. This is Very very nice article. Everyone should read. Thanks for sharing. Don't miss WORLD'S BEST GAMES

  12. Dr Driving is one of the my favourite game ever and today I am going to share Dr Driving Mod Apk

  13. Whatsapp Group Link - 5000+ Updated Whatsapp Groups
    whatsapp group link Click The link And Join Whatsapp New Groups, Dating, Business promositions Groups

  14. Nice tips. Happy I've found this page.

  15. Really great article, you guys are doing a great work, keep posting good stuff, If your audience is into Tech do share 30 MiUi 11 Tips and Tricks
    Gizdoc Tech Paradise

  16. I'm very pleased to uncover this web site. I want to to thank you for your time due to this fantastic read!! I definitely loved every little bit of it and i also have you bookmarked to look at new information in your site.
    Tech news


  17. You write this post very carefully I think, which is easily understandable to me. Not only this, but another post is also good. As a newbie, this info is really helpful for me. Thanks to you.
    Tally ERP 9 Training
    tally classes
    Tally Training institute in Chennai
    Tally course in Chennai


  18. Thanks for your extraordinary blog. Your idea for this was so brilliant. This would provide people with an excellent tally resource from someone who has experienced such issues. You would be coming at the subject from a different angle and people would appreciate your honesty and frankness. Good luck for your next blog!
    Tally ERP 9 Training
    tally classes
    Tally Training institute in Chennai
    Tally course in Chennai
    seo training classes
    seo training course
    seo training institute in chennai
    seo training institutes
    seo courses in chennai
    seo institutes in chennai
    seo classes in chennai
    seo training center in chennai

  19. If you plan on whitening your teeth, don't forget that teeth whitening products and procedures whiten only your natural teeth. If you have any implants, veneers, fillings or crowns, their current shade will not be affected by teeth whitening agents. thanks
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

  20. I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read !! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site.

    Data Science Course

  21. It's really nice and meanful. it's really cool blog. Linking is very useful have really helped lots of people who visit blog and provide them usefull information.

    Data Science Training

  22. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.Computer Programming Courses In Myanmar

  23. Kardinal Stick Siam - relx a great promotion. Express delivery in 3 hours.

    ufa football betting, casino, slots, lottery, direct website 1688, stable financial, 100% UFABET168.

    Online Baccarat FOXZ24 Easy to apply, fast, บาคาร่า deposit-withdraw 10 seconds with the system.

    Watch movies online, watch new movies, series Netflix HD 4K ดูหนังออนไลน์, watch free movies on your mobile phone, Tablet, watch movies on the web.

    SEE4K Watch movies, watch movies, free series, load without interruption, sharp images in HD FullHD 4k, ดูหนังใหม่ all matters, all tastes, see anywhere, anytime, on mobile phones, tablets, computers.

    GangManga read manga, read manga, read manga online for free, fast loading, clear images in HD quality, อ่านการ์ตูน all titles, anywhere, anytime, on mobile, tablet, computer.

    Watch live football ผลบอลสด, watch football online, link to watch live football, watch football for free.

  24. Wonderful article, thanks for putting this together! ufabet168 This is obviously one great post. Thanks for the valuable information and insights you have so provided here.

  25. The products and methods on this list may be able to help you test negative for substance misuse, albeit it will not be easy Fresh juices, sports drinks, detox fluids, and water in large amounts are the key to flushing out the THC remnants from your body, right? Similarly, cranberry juice is undeniably another classic, and a beloved drink people use before a drug test So, you will also have to shave off ALL your body hair It is their ease of administration and the lack of time taken that is making these extremely popular And although it’s not premixed, which means newbies might find the process jarring, Test Clear provides clear instructions with their powdered pee kit to make sure that you use it correctly Note that these are not foolproof ways to get through a drug test


Post a Comment

Be relevant. Spammers will be banned.

Popular posts from this blog

Installing ColdFusion on IIS 7 + Configure IIS for ColdFusion in Windows Vista and Windows Server 2008

Configuring Apache Tiles to Avoid Caching During Development