use the enumipinfo() command to determine which gateway is active on the lan adapter.

then run a select/case series to compare the results and match them to a specific server at that site.

then map your server using that server.

_________________________
How to ask questions the smart way <-----------> Before you ask