Patent ID: 8065723

Claim:
A network communication device corresponding to IP communication and capable of performing IPsec communication, the network communication device comprising: a setting unit configured to obtain and set an operation mode specified by an administrator user; a detecting unit configured to detect a communication error caused by an incorrect portion in an IPsec setting; an initiator/responder unit configured to determine if the network communication device is an initiator side configured to initiate communication negotiations or is a responder side configured to respond to communication negotiations from an initiator side; and a changing unit configured to change the IPsec setting, based on the operation mode set by the setting unit, to correct the incorrect portion or to cancel the IPsec communication, in the event that the communication error is detected, wherein: when the network communication device is an initiating side, the changing unit corrects the IPsec setting and the network communication device attempts a reconnection process; and when the network communication device is the responder side, the network communication device is configured to respond to a communication using a different encryption method, said IPsec setting is corrected, and the network communication device attempts a reconnection process.