How to setup a remote connection to IIS Express

Please watch the video or read the tutorial below.

Introduction

If you are developing a web application the chances are that at some stage you will want to test it using other devices or perhaps get feedback from other people.

Access your application from any device

Conveyor is a new Visual Studio extension from Keyoti that allows you to access your application from any device on your network and by using the Conveyor cloud service you can also easily access your application externally over the Internet.

Conveyor will handle all the configuration settings and tunnel through your firewall enabling remote access to your web application.

Tunnelling firewall to IIS Express

Installing Conveyor

To get started all you need to do is install the Conveyor extension direct from Visual Studio. Open the Extensions and Updates tool and from the online section search for 'Conveyor'. Install the extension and restart Visual Studio following any prompts while doing so.

Downloading from Visual Studio

When you are ready to use Conveyer, load up your application and Conveyor should be enabled by default. You can check this by going to the tools menu in Visual Studio. The icon should be highlighted.

Remote URL

When you run your application you will see a window appear for Conveyor, this will show the remote URL for accessing your app over the network.

You will need to add an inbound firewall rule allowing access to the TCP port given in the Remote URL:

  1. Open Windows 'Start' and type WF.msc.
  2. Click 'Inbound Rules' on the left.
  3. Click 'New Rules' on the right.
  4. Choose 'Port' in the new dialog, then 'Next'.
  5. Select TCP, and enter the port from the Remote URL next to 'Specific local ports' (45455-45499), then 'Next'.
  6. Next, and next (you may want to disable 'Public'), give it a name like 'Conveyor: web dev server access enabled'.

Access over the internet

In order to provide external access to your web application over the Internet you will need to register for an account.

Click the access over Internet button and then sign up now. Once you've registered for an account you can go ahead and login.

Once logged in you will see the internet URL is shown in the conveyor window. This is the URL provided by the Conveyor cloud service, you can now use this URL to provide external access to your web application over the Internet.

The Conveyor UI

Conclusion

If you have ever tried opening up access to your visual studio web development server I'm sure you know it's often time-consuming and error-prone. With Conveyor you can simplify the whole process saving you time and hassle. You can find conveyor by searching the Visual Studio extension marketplace today.