What's wrong with the built-in $scon(N).cid ???
I don't think you understand the way I wrote mine. The 2nd network connection is NOT necessarily the 2nd server connection.