The Wayback Machine - https://web.archive.org/web/20220214064147/https://github.com/dotnet/aspnetcore/issues/40191
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] More detail for Microsoft.AspNetCore.Http.ConnectionInfo.RemoteIpAddress #40191

Open
1 task done
lonix1 opened this issue Feb 14, 2022 · 1 comment
Open
1 task done

Comments

@lonix1
Copy link

@lonix1 lonix1 commented Feb 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

One uses HttpContext.Connection.RemoteIpAddress to get a client's IP address.

Microsoft.AspNetCore.Http.ConnectionInfo.RemoteIpAddress is marked as nullable.

The docs linked above just say "Can be null" - under what conditions can it be null?

Describe the solution you'd like

The docs for Microsoft.AspNetCore.Http.ConnectionInfo.RemoteIpAddress are unclear. Please add more detail.

Additional context

No response

@davidfowl
Copy link
Member

@davidfowl davidfowl commented Feb 14, 2022

If the connection isn’t a tcp connection. It could be a Unix domain socket or a transport that isn’t up based

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants