A method for a terminal to connect to wireless networks in a wireless
network system is disclosed. The wireless network system has a plurality
of wireless networks, each having a unique identity. The terminal
includes a network database for storing a plurality of predetermined
identities, a plurality of configuration tables with each associating
different predetermined identities to different priorities, and a status
pointer representing when or where the terminal operates. The method
includes selecting one configuration table according to the status
pointer, comparing the identities received by the terminal with the
predetermined identities in the selected configuration table, selecting
an identity among the matched identities according to the priority
associated with the matched predetermined identities, and connecting to
the wireless network corresponding to the selected identity.