Exporting a list of end point external ip's?

Does any know of a way to export a list of endpoints with their external ip's showing?

I need the list to whitelist the external ip's.