There are provided a code reading unit 12 for reading a code in a smartphone 10, an operating environment setting unit 13 for analyzing the read code, thereby acquiring first operating environment setting information required for setting to perform connection through Bluetooth to a relay device 20 to set the information to the smartphone 10, a setting information transmitting unit 14 for reading second operating environment setting information required for setting to perform wireless connection through Wi-Fi from a setting information storing unit 11 and transmitting the information to the relay device 20, and a second operating environment setting unit 23 for setting the received second operating environment setting information to the relay device 20. Even if the relay device 20 does not include a code reading device, it is possible to automatically set the connection through the Bluetooth, and furthermore, to automatically set the wireless connection through the Wi-Fi to the relay device 20 by reading the c