Use the Call-back technique..
the server is requested to connect, it hangs up and dials a stored number, if the other machine answers you know it's the right terminal and you can drop of a session key or what not