title: ASP .NET Core: Get User IP Address
body: <p>I have a table : with a model</p>
  <pre><code>public class ArticleLike:BaseEntity
  {
      public long? UserId { get; set; }
      public string UserIp { get; set; }
      public ICollection&lt;User&gt; User { get; set; }
  }
  </code></pre>
  <p>How can I  get Ipaddress of user ?
  I had to write method of it on service or repository?</p>