A communication method in a handover process, comprising: when a terminal is handed over from a source access network device to a target access network device, receiving, by a Mobile Edge Computing, MEC, network element, address information of the target access network device that is sent by the target access network device; and changing, by the MEC network element, stored address information of the source access network device to the address information of the target access network device, wherein the receiving, by a MEC network element, address information of the target access network device that is sent by the target access network device comprises: receiving, by the MEC network element, a message sent by the target access network device, wherein the message carries the address information of the target access network device, and the message further carries address information of a gateway device corresponding to the target access network device; and the communication method further comprises: changing, by the MEC network element, stored address information of a gateway device corresponding to the source access network device to the address information of the gateway device corresponding to the target access network device. when a terminal is handed over from a source access network device to a target access network device, receiving, by a Mobile Edge Computing, MEC, network element, address information of the target access network device that is sent by the target access network device; and changing, by the MEC network element, stored address information of the source access network device to the address information of the target access network device, wherein the receiving, by a MEC network element, address information of the target access network device that is sent by the target access network device comprises: receiving, by the MEC network element, a message sent by the target access network device, wherein the message carries the address information of the target access network device, and the message further carries address information of a gateway device corresponding to the target access network device; and the communication method further comprises: changing, by the MEC network element, stored address information of a gateway device corresponding to the source access network device to the address information of the gateway device corresponding to the target access network device. receiving, by the MEC network element, a message sent by the target access network device, wherein the message carries the address information of the target access network device, and the message further carries address information of a gateway device corresponding to the target access network device; and the communication method further comprises: changing, by the MEC network element, stored address information of a gateway device corresponding to the source access network device to the address information of the gateway device corresponding to the target access network device. changing, by the MEC network element, stored address information of a gateway device corresponding to the source access network device to the address information of the gateway device corresponding to the target access network device.