Testing ColdFusion pages

To ensure that the code you wrote is working as expected, you view the ColdFusion page in a browser by going to the appropriate URL, for example http://localhost/test/mypage.cfm. If you are using the built-in web server, specify the port to use in the URL, for example, http://localhost:8500/test/cfpage.cfm. The address localhost is only valid when you view pages locally.

Note: On Vista, the address ::1 is equivalent to localhost. You can use the ColdFusion GetLocalHostIP function to get the IP address of localhost.

The URL for a remote site includes the server name or IP address of the server where ColdFusion is installed; for example, http://<serveripaddress>/test/mypage.cfm. Some ColdFusion J2EE configurations require a context root in the URL; for example, http://<server>/<context-root>/mypage.cfm. For example, if you deploy an EAR file and use the default context root of cfconroot, you specify http://localhost/cfconroot/test/mypage.cfm.

Twitter™ and Facebook posts are not covered under the terms of Creative Commons.