The device according to claim 1, further comprising a router detection section for detecting an IP address of a router from an ICMP reply to an ICMP echo request which is sent to IP addresses within a subnet indicated by said subnet mask detected. 7.