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

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

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

 
0
  #1
Apr 25th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

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

 
0
  #2
Apr 28th, 2005
Request.ServerVariables["REMOTE_ADDR"].ToString()
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

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

 
0
  #3
Apr 28th, 2005
One question, what is "REMOTE_ADDR" is it built in or a user defined thing?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2003
Posts: 117
Reputation: Iron_Cross is an unknown quantity at this point 
Solved Threads: 2
Iron_Cross's Avatar
Iron_Cross Iron_Cross is offline Offline
Junior Poster

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

 
0
  #4
Apr 29th, 2005
It's just string. It's built in. Using that exact, word for word, example you'll get their ip.
elitehackers.info
Today's Penny-Arcade!
Pain is weakness leaving the body!
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

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

 
0
  #5
Apr 30th, 2005
ok thanks for clearing that up.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC