An electronic device (101, 200, 300, 500, 810), comprising: at least one communication circuit supporting wireless local area network, WLAN, communication and cellular communication; and a processor (120, 330) functionally connected to the at least one communication circuit and configured to: establish a cellular communication connection between the electronic device (101, 200, 300, 500, 810) and a network; establish a WLAN communication connection between the electronic device (101, 200, 300, 500, 810) and an external device via a WLAN relay function of the electronic device (101, 200, 300, 500, 810) wherein the WLAN relay function supports accessibility of the external device to the network via the electronic device; check for policy information related to the WLAN relay function; determine a bandwidth allocation of the electronic device (101, 200, 300, 500, 810) and the external device based on at least part of the policy information; and block, if a number of the at least one external device connected via the WLAN relay function is equal to or greater than a designated value, WLAN relay connections of additional external devices based on the at least part of the policy information. at least one communication circuit supporting wireless local area network, WLAN, communication and cellular communication; and a processor (120, 330) functionally connected to the at least one communication circuit and configured to: establish a cellular communication connection between the electronic device (101, 200, 300, 500, 810) and a network; establish a WLAN communication connection between the electronic device (101, 200, 300, 500, 810) and an external device via a WLAN relay function of the electronic device (101, 200, 300, 500, 810) wherein the WLAN relay function supports accessibility of the external device to the network via the electronic device; check for policy information related to the WLAN relay function; determine a bandwidth allocation of the electronic device (101, 200, 300, 500, 810) and the external device based on at least part of the policy information; and block, if a number of the at least one external device connected via the WLAN relay function is equal to or greater than a designated value, WLAN relay connections of additional external devices based on the at least part of the policy information. establish a cellular communication connection between the electronic device (101, 200, 300, 500, 810) and a network; establish a WLAN communication connection between the electronic device (101, 200, 300, 500, 810) and an external device via a WLAN relay function of the electronic device (101, 200, 300, 500, 810) wherein the WLAN relay function supports accessibility of the external device to the network via the electronic device; check for policy information related to the WLAN relay function; determine a bandwidth allocation of the electronic device (101, 200, 300, 500, 810) and the external device based on at least part of the policy information; and block, if a number of the at least one external device connected via the WLAN relay function is equal to or greater than a designated value, WLAN relay connections of additional external devices based on the at least part of the policy information.