944,184 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 26759
  • C# RSS
Apr 25th, 2005
0

is there a way to get an ip using c# and asp.net

Expand Post »
I want to check someone's ip address when they come onto my website, is there a way that I can do that using c# and asp.net?
Similar Threads
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004
Apr 28th, 2005
0

Re: is there a way to get an ip using c# and asp.net

Request.ServerVariables["REMOTE_ADDR"].ToString()
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003
Apr 28th, 2005
0

Re: is there a way to get an ip using c# and asp.net

One question, what is "REMOTE_ADDR" is it built in or a user defined thing?

Thanks
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004
Apr 29th, 2005
0

Re: is there a way to get an ip using c# and asp.net

It's just string. It's built in. Using that exact, word for word, example you'll get their ip.
Reputation Points: 46
Solved Threads: 2
Junior Poster
Iron_Cross is offline Offline
117 posts
since Jul 2003
Apr 30th, 2005
0

Re: is there a way to get an ip using c# and asp.net

ok thanks for clearing that up.
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: c# and xml: How to use
Next Thread in C# Forum Timeline: How can i get i get the button.Enabled=true; work when...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC