Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET development server: external access

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.

like image 322
Karnivaurus Avatar asked Dec 20 '25 23:12

Karnivaurus


2 Answers

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.

like image 83
Jim W says reinstate Monica Avatar answered Dec 24 '25 02:12

Jim W says reinstate Monica


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.

like image 41
Krishnraj Rana Avatar answered Dec 24 '25 03:12

Krishnraj Rana



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!