A non-transitory computer-readable storage medium storing a data communication program for transmitting and receiving data to and from a server device via a relay device by wireless communication, the program causing a computer to execute:
- receiving a broadcast signal containing at least one piece of terminal identification information transmitted from the server device via the relay device;
- determining whether or not any of the at least one piece of terminal identification information contained in the received signal corresponds to previously stored terminal identification information for identifying an information processing device;
- requesting a wireless connection to the relay device when it is determined that one of the at least one piece of terminal identification information corresponds to the previously stored terminal identification information for identifying the information processing device;
- and
- transmitting or receiving data to or from the server device via the relay device by wireless communication.