One of my Web API takes IP address as a URL param (string type) and does something with it. The problem is that I'm not able to pass an IP address as part of the URL.
It's a HTTP GET. A request of http://localhost/app/dosomethingwiththisip/10.20.128.0 fails while http://localhost/app/dosomethingwiththisip/10 succeeds (even though it fails in terms of what needs to be done with it).
Web API method is defined as, with attribute routing enabled,
[Route("dosomethingwiththisip/{ipAddress}")]
[HttpGet]
public bool dosomethingwiththisip(string ipAddress)
{
}
Am I doing something wrong?