7

I've got an ASP.NET MVC 4 application, which I can browse locally

http://localhost:portnr/SomeController

When I try to browse it from another computer in the same network, or just by local ip, I get "Bad Request - Invalid Hostname"

http://192.168.0.x:portnr/SomeController

I dont get the same error if I specify an invalid portnr, so I guess the error message is from asp.net itself. I'm trying to browse the site from my IPhone.

What should I do to make this work?

3

1 Answer 1

2

The port is an internal dev server port. You will need to use a tool like SPI Port Forward to forward your local port externally outside your local computer. Here is a link that shows you how the tool works,

http://vishnuvalentino.com/download/spi-port-forward-redirection-for-windows-to-another-port-ip-address/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.