IP address - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

IP address

post by seera on Dec 28, 2020

How can I get IP address of user who connecting with the bot.

post by stephens on Jan 1, 2021

It depends on what channel is being used. If the client connects to Rasa via the REST channel, the request is received here. Rasa is using the sanic library to handle this and the sanic docs show that you’ll find the ip address in the request: ip (str) - IP address of the requester.

If you’ve written the client app yourself, you can include the ip and any other info in the message metadata and it will automatically be extracted and available to your custom actions.

post by seera on Apr 22, 2021

@stephens thanks for your reply. Can I you please share examples regarding this

post by stephens on Apr 24, 2021

What channel are you using?

post by lelemh on Apr 25, 2021

How about socket I/O channel?