1 . An information processing apparatus coupled to a device via at least one of a plurality of networks, the information processing apparatus comprising:
a memory having computer readable instructions and at least one processor configured to execute the computer readable instructions to, transmit to the device first communication information for the device communicating with the information processing apparatus, when a process is requested from the device; determine whether the information processing apparatus can communicate with the device via a first network to which the device is coupled according to whether the device communicates with the information processing apparatus using the first communication information; connect to a second network that is different from the first network using second communication information for connecting to the second network, the second communication information being acquired upon transmitting the first communication information to the device, when the device is determined not to communicate with the information processing apparatus via the first network; and determine whether the information processing apparatus can communicate with the device via the second network according to whether the device communicates with the information processing apparatus using the first communication information via the second network.
2 . The information processing apparatus according to claim 1 ,
wherein the at least one processor is further configured to execute the computer readable instructions to, prepare a service provider, with which the device can communicate using the first communication information, configured to provide a service for a request from another information processing apparatus; and determine whether the information processing apparatus can communicate with the device via the first network or the second network, according to whether the device communicates with the service provider.
3 . The information processing apparatus according to claim 2 ,
wherein when the device communicates with the service provider, the service provider is configured to acquire address information of the device for uniquely identifying the device on the first network or the second network, and wherein the at least one processor is further configured to execute the computer readable instructions to request the process from the device specifying the address information via the first network or the second network.
4 . The information processing apparatus according to claim 2 ,
wherein the service provision unit is configured to return an indication that communication is successful for a first communication from the device to the service provider after the service provider is prepared, and return an indication that communication is not successful for a second or later communication from the device to the service provider.
5 . The information processing apparatus according to claim 2 ,
wherein the at least one processor is further configured to execute the computer readable instructions to acquire a port number with the second communication information, and transmit the first communication information including the port number to the device; and prepare the service provider, a port of which the device specifies by the port number.
6 . The information processing apparatus according to claim 5 ,
wherein the at least one processor is further configured to execute the computer readable instructions to determine whether the port number has been already used in the information processing apparatus, and when the port number has been used in the information processing apparatus, display an indication that communication with the device is impossible on a display device.
7 . The information processing apparatus according to claim 5 ,
wherein the at least one processor is further configured to prepare the service provider that authenticates the device with a password transmitted from the device; transmit the first communication information including the password; when the password transmitted by the communication unit is determined to coincide with the password transmitted from the device, determine that the information processing apparatus can communicate with the device via the first network or the second network, and when the password transmitted by the communication unit is determined not to coincide with the password transmitted from the device, determine that the information processing apparatus cannot communicate with the device via the first network or the second network.
8 . The information processing apparatus according to claim 1 ,
wherein the at least one processor is further configured to execute the computer readable instructions to, display an indication of requesting an operation of switching to the second network on a display device, before connecting to the second network based on the second communication information, when the device is determined not to communicate with the information processing apparatus via the first network.
9 . The information processing apparatus according to claim 1 ,
wherein the at least one processor is further configured to execute the computer readable instructions to, when the device is determined to be able to communicate with the information processing apparatus via the first network or the second network, cause the device to end the communication with the information processing apparatus using the first communication information.
10 . The information processing apparatus according to claim 1 ,
wherein the at least one processor is further configured to execute the computer readable instructions to, acquire communication determination information describing whether to determine that the device communicates with the information processing apparatus via the first network, with the second communication information, and when the communication determination information describes not to determine that the device communicates with the information processing apparatus via the first network, without determining whether the device communicates with the information processing apparatus via the first network, connect to the second network using the second communication information for connecting to the second network, the second communication information being acquired upon transmitting the first communication information to the device.
11 . The information processing apparatus according to claim 1 ,
wherein the at least one processor is further configured to execute the computer readable instructions to, when priority is attached to the second communication information, and the second communication information includes a plurality of pieces of communication information for the device communicating with the information processing apparatus, connect to different networks based on the respective pieces of communication information in a descending order of the priority, and determine whether the information processing apparatus can communicate with the device via the network according to whether the device communicates with the information processing apparatus using the first communication information via the network.
12 . An information processing system including an information processing apparatus and one or more devices, each coupled to the information processing apparatus via at least one of a plurality of networks, the information processing system comprising:
a memory having computer readable instructions and at least one processor configured to execute the computer readable instructions to, transmit to the device first communication information for the device communicating with the information