add localaddr param to netconnectioncallback function