Eric Guo's blog.cloud-mes.com

in HTML5, JavaScript, Ruby & Rails, Python, and Cloud MES!

Change Binding Port in Microsoft WebMatrix Site Such as node.js Project

Permalink

Microsoft now is become quit outdated technology after they release so many outdated technology, but WebMatrix is in my opinion, the best tools to right node.js tools in Windows.

But I’m used to using port 3000 as default debug port since I’m switch to Ruby & Rails, so really not want to change port time to time, so here is how to change binding port.

D:\EricDocuments\IISExpress\config\applicationhost.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.applicationHost>
<sites>
<site name="firstNode" id="1">
<application path="/" applicationPool="UnmanagedClassicAppPool">
<virtualDirectory path="/" physicalPath="D:\EricDocuments\My Web Sites\firstNode" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:3000:localhost" />
</bindings>
</site>
</sites>
</system.applicationHost>
</configuration>

Just find the your node.js project entry in applicationhost.config and change port.

Comments