https://github.com/sql-mistermagoo/blazorclientip
Display your IP in Blazor server 2 ways
https://github.com/sql-mistermagoo/blazorclientip
Last synced: 6 months ago
JSON representation
Display your IP in Blazor server 2 ways
- Host: GitHub
- URL: https://github.com/sql-mistermagoo/blazorclientip
- Owner: SQL-MisterMagoo
- License: mit
- Created: 2022-11-16T18:34:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T18:41:06.000Z (over 3 years ago)
- Last Synced: 2025-02-05T03:23:34.717Z (over 1 year ago)
- Language: HTML
- Size: 185 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# BlazorClientIP
Demonstrates two ways to get the client IP address
`_Host.cshtml` uses HttpContext to retrieve the request remote address and pass it to the `App`
`Index.razor` displays that IP address and additionally makes a call to the browser to `fetch` the IP address
You would normally not use `eval` but this is just a demo.
Try it out : https://blazorclientip.azurewebsites.net/