Vikas

Vikas

  • 1.4k
  • 831
  • 181.5k

How to insert public IP address using .Net Core Web API

Dec 21 2019 4:29 AM
I want to insert public(Not RemoteIpAddress or LocalIpAddress) ip address using .net core web api 
I have already tried like this 
  1. value.mylocalIp = HttpContext.Connection.LocalIpAddress.ToString();    
but this will not return my actual public Ip address 
 

Answers (3)