-1

I need to get my clients IP address in an Azure function. How would I do that without using system.web

There are many similar questions but all answers are using system.web ex: here

It seems a bit overkill to me to bring in all of system.web for such a simple task. Does anybody know a better way?

Thank you

Janusz Nowak
  • 2,595
  • 1
  • 17
  • 36
Fredrik
  • 41
  • 1
  • 5

1 Answers1

0

I think you're worrying about something that you don't need to. To read the values, you'll have to load something, bet it System.Collections or System.Web or System.Linq or some other combination.

In this case, System.Web is just the way to do it. That's why it's there.

Johns-305
  • 10,908
  • 12
  • 21