Click here to Skip to main content
15,900,714 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can send Client IP to server?
Posted
Updated 21-May-12 3:19am
v2
Comments
E.F. Nijboer 21-May-12 9:25am    
Being a client of the server... the server already knows.

Your question does not make any sense, depending on your server the process will differ, and depending on your server application protocol it might not be applicable.

In the case of ASP.net you can access this information via :
VB
Context.Request.ServerVariables ["REMOTE_ADDR"]
 
Share this answer
 
Comments
VJ Reddy 22-May-12 3:48am    
My 5!
Mehdi Gholam 22-May-12 4:49am    
Thanks VJ!
Dear Friend,

Try this.
request.ServerVariables("REMOTE_ADDR")

you will get the ID.
but you have to insert into a table for future use

Regards,
AP
 
Share this answer
 
v2
I want to save ip address from client to sql Database in my server
programming language:VB.net
DB: SQL Server 2008
 
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