moved method getIPAddress() to GossipConnection.py