Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

Hi,
you can try this working fine

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

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

Response.Write(GetIPHost.HostName);
 
Share this answer
 
v2
Comments
Dylan Morley 15-Dec-11 8:02am    
No, this isn't what the OP is asking. He want's to browse to the site via an internet route rather than an internal IP
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900