3

I am trying to run an ASP.NET MVC project on the development server, and then access it externally. I have set the port to be 8010 each time the development server runs.

Currently, it works fine if I go to http://localhost:8010. However, if I try to access it from a different computer on the network, via http://128.11.53.104:8010 (where the middle bit is my computer's IP address), then it gives me the error: HTTP Error 400. The request hostname is invalid.

What do I need to do such that the development server can be accessed externally? Thanks.

Karnivaurus
  • 22,823
  • 57
  • 147
  • 247

3 Answers3

4

We made a free VS Extension to enable this, called Conveyor.

https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti

It doesn't modify any config files like some solutions.

Jim W
  • 4,866
  • 1
  • 27
  • 43
2

The ASP.NET Dev Server will not accept connections issued by other computers because of security reason. I have had faced this kind of situation in the past and as a solution i have found This link.

Which tell us to use “Trace Utility”. Just check out that link. For other alternative solution, please check this SO Link and check the answer given by Jon Galloway.

Community
  • 1
  • 1
Krishnraj Rana
  • 6,516
  • 2
  • 29
  • 36
1

The development server can only be accessed internally.

However you can set up a TCP forwarder that listens on another port and tunnels between that and your development server.

e.g. http://128.11.53.104:8011

I use tcpTrace for such things: http://www.pocketsoap.com/tcpTrace/

JamesT
  • 2,988
  • 23
  • 29