Get the IP address of an HTTP request in Casablanca

I have a small server that listens for http requests using Casablanca / cpprestsdk. I have seen other APIs provide this function to get the client IP address, but after you have created the Internet and sdk, well, here I am.

Any help plz?

+4
source share
1 answer

Merger with power a few days ago:

  • request.get_remote_address()

(ref: https://github.com/Microsoft/cpprestsdk/pull/507 )

+2
source

Source: https://habr.com/ru/post/1661623/


All Articles