如何使用IP地址运行应用程序 [英] how to run application with IP address

查看:142
本文介绍了如何使用IP地址运行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的开发人员,
当我使用本地主机URL打开asp.net应用程序时,将直接打开它.
http://localhost:1339/Test/Request.aspx [ http://10.10.63.87:1339/Test/Request.aspx [

Dear Developer,
When i open my asp.net application with local host URL then its directlly open.
http://localhost:1339/Test/Request.aspx[^]

but when i same application open with my Ip address,then it cannot open.
http://10.10.63.87:1339/Test/Request.aspx[^]

Any body tell me , hows open the asp.net application with IP address instance of localhost. Or run the application with IP address.

Thanks in Advanced........

Regards,
Ravi

推荐答案

您将需要配置IIS(假设这是您正在/将要使用的Web服务器),以允许从WLAN/LAN到特定用户(或匿名)的访问).如果有IIS,则允许IIS穿越防火墙.

您的应用程序无需更改,仅是网络问题和配置,仅允许局域网和WLAN访问即可.您可以使用IP地址进行访问.确保

关闭防火墙
如果您确实有防火墙,则在尝试首次连接时将其关闭,则可以稍后进行清理.


请参阅:

http://websitedesign09.wordpress.com/2010/01/12/access-an-asp-net-website-using-ip-address-in-an-lan-network/ [
You will need to configure you IIS (assuming this is the web server your are/will using) allowing access from WLAN/LAN to specific users (or anonymous). Allow IIS trought your firewall if you have one.

Your application won''t need to be changed, that''s just networking problems ans configuration you will have to face to allow acces only trought LAN and WLAN.You can access using IP address. Make sure

Turn off your firewall
If you do have a firewall turn it off while you try connecting for the first time, you can sort that out later.
OR

Refer :

http://websitedesign09.wordpress.com/2010/01/12/access-an-asp-net-website-using-ip-address-in-an-lan-network/[^]


这只是一个猜测,但是"localhost"和"10.10.63.87"不是同义词. "10.10.63.87"是一个Internet IP地址,但不一定是计算机的IP地址:它很可能是路由器的IP地址,并且在网络上的所有PC之间共享.您的PC可能没有单独的Internet IP地址,它将有一个由路由器分配的网络内部IP地址.相反,您需要查找您域的IP地址并使用它.
This is just a guess, but "localhost" and "10.10.63.87" are not synonyms. "10.10.63.87" is an internet IP address, but not necessarily the IP address of your computer: it is likely to be the IP address of your Router, and is shared between all the PC''s on your network. Your PC will probably not have an individual internet IP address, it will have an network-internal IP address, probably assigned by your router. Instead, you need to find an IP address for your domain and use that instead.


这篇关于如何使用IP地址运行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆