How to Log IP and MAC Addresses for Each Connection Attempt in Retool?

Hi everyone,

I'm working on a Retool app where we need to log the IP address and, if possible, the MAC address of each user attempting to connect to the service. This is important for us to monitor usage patterns and identify who is accessing the system.

Does Retool provide any built-in functionality or API that allows us to track IP addresses or MAC addresses for each connection? If not, are there any recommended workarounds or third-party integrations that could help achieve this?

Thanks in advance for your help!

Hello @ZeroCodez!

I am not sure that this functionality currently exists but I can definitely make a feature request.

We do have a couple projects in the works for improving tracking and user metrics/data/usage as this has been a common request! stay tuned for updates on that.

On a side note, are you looking to track the IP/MAC addresses for users from your org that are using your app, or would this logging support be for non-org entities that are visiting your Retool app that are unwanted/to get more information about them?

I can check with our team to see if anyone knows about tools that self hosted users can add to their deployments that might track this!

After doing some digging, I found out that MAC address tracking over the web isn't possible as routers typically strip MAC addresses from packets once they leave the local network.

You can only track MAC addresses for devices directly connected to your local network. There might be possibility that Retool could add something like this for cases where there are multiple computers in a local network that are using Retool and users need to track usage metrics by machine.

Retool self-deployed does use Nginx Server Logs and these can provide IP addresses for traffic, you can parse these logs manually or with tools like AWStats or Webalizer.

Other options would be Google Analytics which we have a feature request already for but doesn't include IP addresses. However, Matomo and AWStats do track IP addresses.

Of course a native to Retool solution would be easier so I can make a request for this and keep you updated!

1 Like

Thanks! Please keep us updated on the feature request. :eyes: :eyes: :eyes:

2 Likes