I think it depends on how you define 'closest'.

You could either use the server the user was authenticated against (@LSERVER) or use PING or TRACERT to see which server in a list of servers is closest based on hops and/or time and/or TTL number.

Or if you are using different subnets, you could define it based on the subnet mask. There are already UDFs posted in the UDF forum that evaluate subnet masks.

[ 12. September 2002, 18:15: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.