且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

远程连接到使用asp.net路由的Web表单应用程序?

更新时间:2023-02-15 22:41:44

Localhost自动映射到127.0.0.1,这是一个映射到您自己的机器的内部地址,无论分配为外部地址的IP地址。


是有任何真正的原因,你不能改变它

\\ianoblePC:17315

因此无论您的IP如何,它始终有效(在您的本地网络内)地址?
Localhost automatically is mapped to 127.0.0.1, which is an internal address mapped to your own machine, regardless of the IP address assigned as an external address.

Is there any real reason you can''t change it to
\\ianoblePC:17315
So that it always works (within your local network) regardless of your IP address?


更多信息:对于tlhintoq的工作建议,您的网络需要能够解析托管Web应用程序的计算机名称。


-Frinny
Just a little bit more information: for tlhintoq''s suggestion to work your network is going to need to be able to resolve the computer name that is hosting the web application.

-Frinny


过去我改变主机文件以解析我的本地系统 http:// localfb 而不是localhost,但对于这个项目,似乎并不喜欢e ither。


从我读过的内容来看,如果我使用Visual Studio开发服务器,我将无法进行任何远程连接。所以我希望有一种方法可以在IIS中设置项目,因此.net路由仍然有效,并且可供我网络中的远程用户使用。
In the past I change my host file to resolve my local system to http://localfb instead of localhost, but for this project it doesn''t seem to like either.

From what I''ve read, if I use the Visual Studio Development Server I can''t have any remote connections. So I was hoping there was a way to setup the project in IIS so .net routing still works and it would be available to remote users in my network.