Gazebo interface with server

Hi,
Does anyone know how to send the (x,y,z) of a simulation of a drone flight from the gazebo to a server in Ubuntu 18.04. I need to have these coordinates on a server so they can be variables in a python program.