通过IP地址访问计算机 [英] access a computer via ip address
本文介绍了通过IP地址访问计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在xp中开发了一个asp网页.在此计算机上,可以访问此页面
由IIS.这台计算机具有固定的ip.现在如何从另一个浏览页面
注意:我想通过Internet而不是通过LAN进行连接.我已经制作了网页
作为IIS的主页.网页位置为inetpub> wwwroot> Default.aspx
I have developed an asp web page in xp.In this computer this page can be accessed
by IIS.This computer has a fixed ip.Now how can I browse the page from another
computer?Note:I want to connect via internet,not via LAN.I have made the webpage
as homepage of IIS.The webpage location is inetpub>wwwroot>Default.aspx
推荐答案
您可以尝试正常工作
Hi,
you can try this working fine
IPAddress myIP = IPAddress.Parse(Request.UserHostName);
IPHostEntry GetIPHost = Dns.GetHostEntry(Request.UserHostName);
Response.Write(GetIPHost.HostName);
在这里看看,应该让您入门
http://social.technet.microsoft.com /Forums/zh-CN/w7itpronetworking/thread/ce805d7f-626e-4746-846f-cf5984430e37/ [
Have a look here, should get you started
http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/ce805d7f-626e-4746-846f-cf5984430e37/[^]
这篇关于通过IP地址访问计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文