opensock: log ip address when successfully connected