more attempts at getting correct IP address of referring client