主权项 |
1. A network connecting device for making wireless or wired connection to wide-area networks (WANs) or local-area networks (LANs) via a WAN or LAN network control device, the network connecting device comprising:
a client-terminal—connecting-device personal area network-forming device; a LAN connector; and a microprocessor programmed to function as
a wired LAN connection detection section detecting connecting of a LAN cable to the LAN connector;a profile management section storing and managing profiles including information necessary for forming a connection with a WAN or LAN;a profile selection section selecting, in sequence from among the profiles managed by the profile management section, at least one profile that indicates wired LAN connection, when LAN-cable connection to the LAN connector is detected by the wired LAN connection detection section;a network configuration section setting, based on the at least one wired-LAN connection-indicating profile selected by the profile selection section, a LAN configuration corresponding to the profile;a network identification information acquisition section making a request with a LAN to which the network connecting device is LAN-cable connected, regarding network identification information for identifying the LAN, and acquiring the LAN identification information, based on the LAN configuration set by the network configuration section;a network determination section determining, based on the LAN identification information acquired by the network identification information acquisition section and on information included in the at least one wired-LAN connection-indicating profile selected by the profile selection section, whether a wired LAN with which connection is LAN-cable formed and the LAN configuration set by the network configuration section match each other; anda network connection section applying, when the network determination section determines that a wired LAN with which connection is LAN-cable formed and the LAN configuration set by the network configuration section match each other, the at least one wired-LAN connection-indicating profile selected by the profile selection section, controlling the network-forming device based on the profile, and connecting to the LAN via a LAN network control device; whereinif identification information of the LAN control device for achieving the LAN connection is not set in the at least one wired-LAN connection-indicating profile, the network determination section determines whether an IP (Internet Protocol) address of the network connecting device is within a range acquirable with DHCP (Dynamic Host Configuration Protocol). |