modify for LAN support.