-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Web page how to obtain a visitor IP #4494
Comments
public IActionResult Index()
{
return View(HttpContext.Connection.RemoteIpAddress);
} |
I think this does not work in RC1 if you use Kestrel as this was not yet implemented there. It is fixed in RC2. |
@Muchiachio rc1 not have this methods. |
@cwe1ss rc2 release time is ????? |
there is no release date yet. the weekly standups on https://live.asp.net are your best source for updates. |
release in 20 Apr, 2016 ?? Hope is really, RC1 there are too many defects, cannot bear to continue |
RC1 has this method, don't know if it works or not on remote, but it returns :::1 on local as I would expect. |
@Muchiachio Can't works on remote |
@Tratcher any idea on this? |
Wait for RC2, there were lots of issues with this on RC1. |
@Tratcher so as far as we know this was fixed in RC2? |
Yes |
Ok then that's the answer: this is fixed in RC2. You can get the latest RC2 nightly builds from here: https://www.myget.org/gallery/aspnetrelease |
Hi I'm using Asp.Net Core 1.1 MVC Regards |
@wgutierrezr please open a new issue in BasicMiddleware, I expect you're having an issue with the forwarded headers for the remote IP. Please share the request headers as received by the server. |
Web page how to obtain a visitor IP
in asp.net core rc1
The text was updated successfully, but these errors were encountered: