I have been developing the website on localhost, but I'd like to give someone outside access to it.
I am using dynamicdns for a permanent domain, and I set up port forwarding on my router. When I try to hit the wesbite using the dynamicdns URL, I get the error saying "Bad Request - Invalid Hostname"
I added the dynamicdns URL to the hostname of the site, but it's still not working.
Bad Request - Invalid Hostname
I have been developing the website on localhost, but I'd like to give someone outside access to it.
I am using dynamicdns for a permanent domain, and I set up port forwarding on my router. When I try to hit the wesbite using the dynamicdns URL, I get the error saying "Bad Request - Invalid Hostname"
I added the dynamicdns URL to the hostname of the site, but it's still not working.
Did you add it in IIS?
I am actually running it in webmatrix. Will that be a problem?
I know little about webmatrix but I presume thats your problem as how would windows map the incoming request to your website?
IIS is not my strong suite, but the was I underand it, WebMatrix is currently serving the website on port 50001.
I didn't know I need to do anything special about it. But, I have a different avenue to persue now. If I figure this out, i'll post my solution here.
What if you just browse the external ipaddress ie: http://xx.xx.xx.xx:50001
Same error.
I say run using IIS :)
Alright, gotta figure out how to switch from WebMatrix to IIS
Have a look at http://blogs.iis.net/vaidyg/archive/2010/07/29/serving-external-traffic-with-webmatrix-beta.aspx
Switching to IIS would still be what I recommend.
That worked!
I will switch to IIS soon. Thank you for your help.
is working on a reply...