Click here to Skip to main content
15,914,452 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
hi.............
i have done Client server application....
but i am unable to get ip of connected clients .from server side...........
and using Accept and Decline buttons.......
plz help.??????????
Posted

Try this one

first include this header file in top of cs page

C#
using System.Net;
using System.Web.Security;


Then using below function to get a client mechine ip address

Request.UserHostAddress

Hope This will Help full for you!!
 
Share this answer
 
Comments
zeeshansaiad1990 19-Apr-12 7:05am    
doesnt work.............
plz help..........
but i want for windows application............
 
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