A facsimile machine is connected to the Internet via a router and carries
out communication by using a set communication port. The facsimile
machine includes a function for setting and changing the communication
port to be used by the facsimile machine itself, and a function for
changing a port transfer setting of the router so that a packet addressed
to the set and changed communication port is transferred to the facsimile
machine itself.