added getting self.ip