Reputation: 3418
When I debug my asp.net mvc3 web application on http://localhost:11118/
using microsoft visual studio and it works perfectly.
But when I try to view it on http://MYPUBLICIPADRESS:11118/
I get a HTTP Error 404. The requested resource is not found.
message. I portforwarded port 1118 correctly. I have no problems doing the same using apache.
How can I get this to work?
Upvotes: 1
Views: 425
Reputation: 7590
The Visual Studio internal server only accepts connection coming from localhost
. You should use IIS Express (and manually change the config file) to let it accept connection using other hostnames, including the computer name.
You can read more about setting the server of your preferences on MSDN
Upvotes: 1