BAT has no way to use the IP as a filter, you'd need to filter by one of the available options in BAT if you plan to use a query, or to manually create your file for the update.
If you have properly configured the location on your devices, you can use that value.
HTH
java
if this helps, please rate