Skip to content

Get Client IP Address from HTTP Server Request. How? #9314

Discussion options

You must be logged in to vote

Ahhh... ok.

So it's stored in the headers but to obtain it, you must use more than just dot notation.

Example: const clientIPAddress: string = httpRequest.headers.get('host')

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kitsonk
Comment options

Answer selected by suchislife801
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants