A setting for formation of a network is facilitated for wireless data communications. When forming a network by Bluetooth, in a mobile phone serving as a master, a display screen for apparatus selection is displayed, so that a user can select an apparatus to be connected to the network. When the user selects an apparatus, the screen is shifted to a display screen for function selection so that a connection state can be set for each function.