0

I am trying to divine what ip or hostname a request originated from, is that something that can be made available in the controller so I can log it?

  public async endpoint(
    @Request() request: any,
  ): Promise<IMyResponse | IError> {
    console.log(request.getSourceHost());
  }
aggaton
  • 3,066
  • 2
  • 25
  • 36
  • Does this answer your question? [Express.js: how to get remote client address](https://stackoverflow.com/questions/10849687/express-js-how-to-get-remote-client-address) – Matt Mar 07 '23 at 20:49

0 Answers0