Search code examples
asp.netvirtual-server

Virtual Server to display ASP.NET MVC web application


In a few weeks I have to demonstrate a project I've been working on and at the moment I've just been using the Visual Studio Express 2012 debug with IIS Expess. The project is simply an ASP.NET MVC web application that I access on an android device through WebView.

I was just wondering, is it possible to set up my laptop as a virtual server? At the demonstration I won't have internet that both the laptop and android will be able to connect to.

Is there another way to do it? Possibly by tethering the devices?


Solution

  • You can setup your Windows 7 laptop as a WIFI hotspot.

    right-click the Cmd.exe link and select "Run as Administrator".

    Now type the following command:

    netsh wlan set hostednetwork mode=allow ssid=MyNet key=MyPassword
    

    and press [Enter]. Replace "MyNet" with the name you'd like to use for your custom network, and "MyPassword" with a password that's a little harder to guess.

    Still at the command line, type

    netsh wlan start hostednetwork
    

    and press [Enter] to fire up the virtual adapter.

    Now click Control Panel > Network and Internet > Network and Sharing Centre > Change Adapter Settings, right-click your internet connection and select Properties. Click the Sharing tab, check "Allow other network users to connect...", choose your virtual Wi-Fi adaptor - and that's it.