Question : Clarification Needed For System.Environment.MachineName

On my website i need to be able to determine if it is my computer or not.  In other words if it is my computer do x and if it is not my computer do y.

So I tried on page load:
if System.Environment.MachineName =  "Name" then
x
else
y
end if

If I view the page in browser on my local machine it works fine but when I upload the page to the web and try it there it gives me the wrong machine name,

Obviously I have no idea what I'm doing here.  So my question is what am I doing wrong or is it possible to do what I'm trying to do....or.....is there a better way to identify the machine as mine?

Using ASP.Net 2.0 with VB

Answer : Clarification Needed For System.Environment.MachineName

this is for the local machine you are running the web application from..

to do so, you can use the IP-Address If it is static,  or you can use the domain name for your pc.

if you ip is dynamic, you can make a domain name at no-ip.com and then attach it with your dynamic ip.

if you like this way, and you need more information, just tell me :)
Random Solutions  
 
programming4us programming4us