Introduction - If you have any usage issues, please Google them yourself
Get the current visitors Ip information, IP address information to obtain user visitors, can use dependency injection, for instance IHttpConnectionFeature, access to relevant information IP address the instance can, examples are as follows: