I try to get IP-address and port of client which sends HTTP requests to the server. I used properties of HttpListenerRequest
class. UserHostAddress
property returns ip and port of server but not client. RemoteEndPoint
returns some ip and port but it is not true client ip (I know that client requests are coming from port 1234) and every time it returns different data (I don't know why). How can I solve this? May be I should set http header From
on the client side?
Thank you very much!