Reading IP....

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

Which is the efficient statement in .Net Framework 1.1 to read the IP
address of the browser?
Thanks,
Smith
 
note: if a proxy/firewall server is used, this is the not the really the
machines ipaddress, and several users behind the same firewall may have the
same ipaddress. and no, you cannot get the real address.

-- bruce (sqlwork.com)
 
Thank you all

Bruce Barker said:
note: if a proxy/firewall server is used, this is the not the really the
machines ipaddress, and several users behind the same firewall may have the
same ipaddress. and no, you cannot get the real address.

-- bruce (sqlwork.com)
 
to display the account that an ASP.net page is executing you could try this:
 
Aargh!

Do you read replies to questions you've answered, so that you don't
propagate the *same* mistaken code which you have previously
proposed and which has been corrected by others ?

From my previous reply to you :
-------------------------------------------

That's not what he was looking for.

He was looking for "the IP Address of the
server where the code behind is running".

re:
lblAccount.text = System.Security.Principal.WindowsIdentity.GetCurrent().Name

That should be
System.Security.Principal.WindowsIdentity.GetCurrent.Name()
-----------------------------------------------

Now, you come back with :
Label.text = system.security.principal.windowsidentity.getcurrent().name

That should be :
Label.text = system.security.principal.windowsidentity.getcurrent.name()

Please, if you must recommend code, make sure it's correct
....and pay attention to the corrections sent to your posts.




Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top