def METHOD_NAME(self) -> None:
    if not self.has_address:
        raise AttributeError(EXCEPTION_NO_ADDRESS_INFO)
    if self.socket_is_bound:
        return
    if "*" in self.address:
        self.socket.bind(self.address)
    else:
        self.socket.connect(self.address)