4

I have a small server that listens to http requests using Casablanca / cpprestsdk. I've seen that other APIs provide this feature of retrieving client's IP, but after foraging the Internet and the sdk, well.. here I am.

Any help plz?

Felipe Hoffa
  • 54,922
  • 16
  • 151
  • 325
kundrata
  • 651
  • 3
  • 12
  • 24

1 Answers1

2

Merged to master a few days ago:

  • request.get_remote_address()

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

Felipe Hoffa
  • 54,922
  • 16
  • 151
  • 325