How to find a terminal's network information