An electronic device comprising: a first wireless communication circuit configured to communicate with a first wireless network based on a first communication protocol; a second wireless communication circuit configured to communicate with a second wireless network based on a second communication protocol; a display ; at least one processor operatively connected to the first wireless communication circuit , the second wireless communication circuit , and the display ; and a memory electrically connected to the at least one processor , wherein the memory stores instructions that cause the at least one processor to control to: connect to the first wireless network using the first wireless communication circuit , obtain service restriction information associated with the first wireless network , determine whether a service associated with data is restricted in the first wireless network using the service restriction information, and when the service associated with the data is restricted in the first wireless network , while maintaining a connection to the first wireless network , transmit the data over the second wireless network using the second wireless communication circuit , characterized in that the instructions further cause the at least one processor to control to determine whether the service associated with the data is restricted in the first wireless network by comparing a port associated with the data with a blocked port included in the service restriction information. a first wireless communication circuit configured to communicate with a first wireless network based on a first communication protocol; a second wireless communication circuit configured to communicate with a second wireless network based on a second communication protocol; a display ; at least one processor operatively connected to the first wireless communication circuit , the second wireless communication circuit , and the display ; and a memory electrically connected to the at least one processor , wherein the memory stores instructions that cause the at least one processor to control to: connect to the first wireless network using the first wireless communication circuit , obtain service restriction information associated with the first wireless network , determine whether a service associated with data is restricted in the first wireless network using the service restriction information, and when the service associated with the data is restricted in the first wireless network , while maintaining a connection to the first wireless network , transmit the data over the second wireless network using the second wireless communication circuit , connect to the first wireless network using the first wireless communication circuit , obtain service restriction information associated with the first wireless network , determine whether a service associated with data is restricted in the first wireless network using the service restriction information, and when the service associated with the data is restricted in the first wireless network , while maintaining a connection to the first wireless network , transmit the data over the second wireless network using the second wireless communication circuit , characterized in that the instructions further cause the at least one processor to control to determine whether the service associated with the data is restricted in the first wireless network by comparing a port associated with the data with a blocked port included in the service restriction information. <EOS>