In one of your answers you have mentioned that you are using JavaScript to detect public and local IP addresses. I would like to know how you do that.
I need to identify the client IP addresses in order to prevent abuse of my application by limiting the number of request from the same IP address.
I am doing ASP.Net Core 2.0 development. I am using HttpContext.Connection.RemoteIpAddress and HttpContext.Connection.LocalIpAddress, but somehow I get different results than your site. Yours appear to be correct. So, I would like to try your technique.
Would greatly appreciate any help.
Would you share the JavaScript code you use to identify public and local IP address?
1 Answers
Know the answer? Login or sign up for an account to answer this question.