npm i -g iisexpress-proxy iisexpress-proxy 51996 to 3000
Are you a .NET developer building mobile web application? Have you ever been frustrated by the fact that there's no easy way to enable IIS Express to accept connections from remote devices?...
Well, join the club. If you're patient enough to dig through the various links coming up on the search above, you'll see that it is possible, but not really straightforward.
However, there's now a much simpler solution available: you can proxy the http traffic to IIS Express using this little Node.js command-line tool I've put together. It's as simple as typing this in the command prompt:
iisexpress-proxy 51996 to 3000
It will show you something like:
IIS Express Proxy 0.1.2 Proxying localhost:51996 to: - Wi-Fi: 192.168.0.102:3000 - VMware Network Adapter VMnet1: 192.168.192.1:3000 - VMware Network Adapter VMnet8: 192.168.245.1:3000 Listening... [ press Control-C to exit ]
Then you can simply point your tablet or mobile phone at http://192.168.0.102:3000.
8 years ago I was doing lots of C#/.NET development. Then I switched to Ruby/RoR, then to Node.js, which I've been using almost exclusively for 3 years. During these last 3 years I've become accustomed to a rich, flourishing, cutting-edge development workflow that just works.
Now I am contemplating the opportunity of working on a large Angujar.js/.NET application. None of those is my technology of choice, but they do seem to be favored by the corporate environment, and after all, that's where the money is.
While Microsoft is slowly reinventing itself, I've come to realize their ecosystem and philosophy are still far from web-developer friendly. For instance, Visual Studio might be a great IDE for building desktop applications, but to be honest I find it rather counter-productive for web development.
However, you can alleviate the pain by borrowing the right tools from the open-source world and especially from the rich Node.js ecosystem.