# How to check whether phone is connected to internet or not

**URL:** <https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770>\
**Category:** Mobile\
**Tags:** Networking, internet, unreal-engine, Android, question\
**Created:** [September 14, 2021, 5:27am UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770 "2021-09-14T05:27:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaibhav\_Mahajan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaibhav\_Mahajan](https://forums.unrealengine.com/u/Vaibhav_Mahajan)\
**Post date:** [September 14, 2021, 5:27am UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/1 "2021-09-14T05:27:35Z")

</div>

Want to check internet connection on my android game

---

<div class="post-metadata">

**Author:** ![Featuriing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/featuriing/32/1135409_2.png) [@Featuriing](https://forums.unrealengine.com/u/Featuriing)\
**Post date:** [September 14, 2021, 7:08am UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/2 "2021-09-14T07:08:29Z")

</div>

The easiest solution is probably to run a simple GET request against something like [google.com](http://google.com) using a simple C++ function like this one:

```
void AMyActor::RunInternetCheck() {

	TSharedRef<IHttpRequest, ESPMode::ThreadSafe> local_http = FHttpModule::Get().CreateRequest();
	this->SetHTTPTimeout();

	local_http->OnProcessRequestComplete().BindLambda([this](FHttpRequestPtr request, FHttpResponsePtr response, bool success) -> void {

		if(request->GetResponse()->GetResponseCode() == 200) {		

			/// ---> add your code here that gets executed when having internet connection

		}
	});

	local_http->SetURL("https://google.com");
	local_http->SetVerb("GET");
	local_http->ProcessRequest();
}
```

---

<div class="post-metadata">

**Author:** ![Vaibhav\_Mahajan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaibhav\_Mahajan](https://forums.unrealengine.com/u/Vaibhav_Mahajan)\
**Post date:** [September 21, 2021, 6:31am UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/3 "2021-09-21T06:31:11Z")

</div>

But Im using blueprint so how can I implement this in my blueprint project

---

<div class="post-metadata">

**Author:** ![zhuowl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zhuowl](https://forums.unrealengine.com/u/zhuowl)\
**Post date:** [September 27, 2021, 8:03am UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/4 "2021-09-27T08:03:35Z")

</div>

BlueprintNode "Has Active Wifi Connection"can check whether your mobile is connected to wifi

[link text](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/MobilePatching/HasActiveWiFiConnection/)

---

<div class="post-metadata">

**Author:** ![El\_Delfinito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@El\_Delfinito](https://forums.unrealengine.com/u/El_Delfinito)\
**Post date:** [April 13, 2023, 9:55am UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/6 "2023-04-13T09:55:54Z")

</div>

Continuing the discussion from [How to check whether phone is connected to internet or not](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/4):  
works for me:) also for windows and android as well

---

<div class="post-metadata">

**Author:** ![SparrowARK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SparrowARK](https://forums.unrealengine.com/u/SparrowARK)\
**Post date:** [September 18, 2023, 2:01pm UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/8 "2023-09-18T14:01:54Z")

</div>

You can use this to detect WIFI / Mobile data in Mobile phone.

[(1) How to Check if Android has Internet connection of not in Unreal Engine for Free - YouTube](https://www.youtube.com/watch?v=0GVbT2GFGYE&t=324s)

---

<div class="post-metadata">

**Author:** ![Suraj00000001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Suraj00000001](https://forums.unrealengine.com/u/Suraj00000001)\
**Post date:** [October 1, 2023, 11:55pm UTC](https://forums.unrealengine.com/t/how-to-check-whether-phone-is-connected-to-internet-or-not/488770/9 "2023-10-01T23:55:52Z")

</div>

here you can check Internet Connect video URL link - [https://youtu.be/68ulqbjn77o](https://youtu.be/68ulqbjn77o)
