本文介绍了通过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

推荐答案

IPAddress myIP = IPAddress.Parse(Request.UserHostName);

IPHostEntry GetIPHost = Dns.GetHostEntry(Request.UserHostName);

Response.Write(GetIPHost.HostName);



这篇关于通过IP地址访问计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 17:37
查看更多