oskar132
oskar132

Reputation: 839

Deploy asp.net mvc 4 web application

I'm currently developing a web application with asp.net mvc 4, wich uses a SQL database. My question is, how can I deploy it on my machine so its accesible from the internet? I really want to just deploy it on my machine so I dont have to migrate my database plus its not for production, my boss just wants to access the web application from his computer which is not on my local network.

Upvotes: 0

Views: 163

Answers (1)

Dai
Dai

Reputation: 155608

  1. Use a webserver that doesn't run on the desktop (i.e. IIS instead of Cassini. I'm unsure about whether or not IIS Express is a good idea or not - personally I prefer the genuine article. Cassini does not allow external connections btw.)
  2. Second, ensure your computer is accessible from your boss' location. If you're in an office environment then you're probably behind a NAT, you'll need to ask your network administrator to set up port forwarding to your machine - they'll probably deny a request to forward port 80, so ask for a port above 1024. You'll need to configure IIS and your local computer's firewall to accept connections on that forwarded port and to add the binding to the website in IIS too.
  3. Get your Internet-visible IP address from a service like WhatIsMyIP.com (or my personal favourite: MoanMyIP.com).
  4. Your boss will then need to enter http://yourIPAddress:yourForwardedPort/someAppPath to access your application.

Upvotes: 4

Related Questions