A method for determining gateway information performed by a first device, the method comprising: • obtaining first information of a user equipment, wherein the first information of the user equipment is used to indicate an area in which the user equipment subscribes to a service, wherein the obtaining the first information of the user equipment comprises: ∘ obtaining device information of a second device, and obtaining the first information of the user equipment according to the device information of the second device, wherein the device information of the second device is: in a first alternative, a host name of the second device, and the first information is area information in the host name of the second device, or in a second alternative instead of the first alternative, a number of the second device, and the first information is an area code in the number of the second device; • determining gateway information corresponding to a first domain name, which comprises the first information of the user equipment, by: ∘ querying a first correspondence, stored in the first device, according to the first domain name, wherein a result of the query is the gateway information corresponding to the first domain name, thereby determining the gateway information, and the first correspondence comprises a correspondence between the first domain name and the gateway information, wherein the gateway information is the same for those first domain names having same first information; (S 202), • wherein the gateway information is used to indicate a gateway in the area, and is: an internet protocol, IP, address of the gateway in the area in which the user equipment subscribes to the service, a device name of the gateway in the area in which the user equipment subscribes to the service, or an identifier of the gateway in the area in which the user equipment subscribes to the service. • obtaining first information of a user equipment, wherein the first information of the user equipment is used to indicate an area in which the user equipment subscribes to a service, wherein the obtaining the first information of the user equipment comprises: ∘ obtaining device information of a second device, and obtaining the first information of the user equipment according to the device information of the second device, wherein the device information of the second device is: in a first alternative, a host name of the second device, and the first information is area information in the host name of the second device, or in a second alternative instead of the first alternative, a number of the second device, and the first information is an area code in the number of the second device; in a first alternative, a host name of the second device, and the first information is area information in the host name of the second device, or in a second alternative instead of the first alternative, a number of the second device, and the first information is an area code in the number of the second device; • determining gateway information corresponding to a first domain name, which comprises the first information of the user equipment, by: ∘ querying a first correspondence, stored in the first device, according to the first domain name, wherein a result of the query is the gateway information corresponding to the first domain name, thereby determining the gateway information, and the first correspondence comprises a correspondence between the first domain name and the gateway information, wherein the gateway information is the same for those first domain names having same first information; (S 202), • wherein the gateway information is used to indicate a gateway in the area, and is: an internet protocol, IP, address of the gateway in the area in which the user equipment subscribes to the service, a device name of the gateway in the area in which the user equipment subscribes to the service, or an identifier of the gateway in the area in which the user equipment subscribes to the service. an internet protocol, IP, address of the gateway in the area in which the user equipment subscribes to the service, a device name of the gateway in the area in which the user equipment subscribes to the service, or an identifier of the gateway in the area in which the user equipment subscribes to the service.