1. An electronic device comprising:a memory;
a transceiver configured to transmit and receive messages; and
a processor operably connected to the memory and the transceiver, the processor configured to:
transmit, to a client device, a non-internet protocol (IP) service-based message indicating whether a host IP network is available based on a transmission availability of an IP packet, which is included in another non-IP service-based message transmitted from the client device, to be transmitted to a server from the electronic device when the electronic device is connected with the client device,
receive, from the client device, a non-IP service-based request message including an IP packet corresponding to an IP request including an IP address allocated to the client device when the host IP network is available, wherein the non-IP service-based request message includes hypertext transfer protocol (HTTP) information and a non-IP header,
obtain the IP request from the non-IP service-based request message using IP and TCP information obtained using the HTTP information, and
transmit, to the server, the IP request.