Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

HttpPlatformHandler/Kestrel: HttpContext.Connection.RemoteIpAddress not working #17

Closed
@guardrex

Description

@guardrex

Following: #16

I'm using Google RECAPTCHA on this contact form, and I think I used to have ...

string gIp = Context.Connection.RemoteIpAddress.ToString();

... in the beta7 version of this app. For the beta8 upgrade, that Context went away, but it seemed cool with HttpContext ...

string gIp = HttpContext.Connection.RemoteIpAddress.ToString();

... but that's throwing a null reference exception. Is this a "Luke not handling the contexts correctly" problem or a "HttpPlatformHandler/Kestrel" problem?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions