# No internet connection in simulator

**URL:** <https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902>\
**Category:** Newbie Questions\
**Created:** [July 23, 2020, 2:05pm UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902 "2020-07-23T14:05:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JTPenn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@JTPenn](https://forums.solar2d.com/u/JTPenn)\
**Post date:** [July 23, 2020, 2:05pm UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/1 "2020-07-23T14:05:02Z")

</div>

I am running on Corona SDK simulator build 2020.3580  
I cannot connect to any kind of network, plugins do not install and network operations do not succeed.  
I am not sure what is the problem, but I made sure simulator is enabled in firewall and that my internet connection has no issues, in fact I tried using several different networks and none work.

I even tried the simple demo app “AsyncHTTP” and also receive “Connection Failure”

_I am still using Corona SDK simulator because we’re not yet ready to move to Solar2D._

---

<div class="post-metadata">

**Author:** ![yosu](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/y/9dc877/32.png) [@yosu](https://forums.solar2d.com/u/yosu)\
**Post date:** [July 23, 2020, 2:22pm UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/2 "2020-07-23T14:22:31Z")

</div>

> [@JTPenn](#):
>
> Solar2D

I am using Corona 2020.3575 (slightly older than yours), and it still works and builds like normal. check your firewall and antivirus. My antivirus usually blocks it (even though I put corona as trusted…)

---

<div class="post-metadata">

**Author:** ![JTPenn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@JTPenn](https://forums.solar2d.com/u/JTPenn)\
**Post date:** [July 24, 2020, 1:23am UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/3 "2020-07-24T01:23:09Z")

</div>

Turned off antivirus, turned off firewall, ran as adminstrator, updated to 2020.3582  
Even tried to open windows in safe mode, but didn’t work because OpenGL is required.

Nothing fixed the issue 😔

---

<div class="post-metadata">

**Author:** ![Andrey5045](https://forums.solar2d.com/user_avatar/forums.solar2d.com/andrey5045/32/146_2.png) [@Andrey5045](https://forums.solar2d.com/u/Andrey5045)\
**Post date:** [July 24, 2020, 7:05am UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/4 "2020-07-24T07:05:36Z")

</div>

How about posting a little bit of your code?

---

<div class="post-metadata">

**Author:** ![mysticeti](https://forums.solar2d.com/user_avatar/forums.solar2d.com/mysticeti/32/154_2.png) [@mysticeti](https://forums.solar2d.com/u/mysticeti)\
**Post date:** [July 24, 2020, 8:26am UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/5 "2020-07-24T08:26:27Z")

</div>

Try checking the version of OpenGL you have installed with this free tool [https://www.realtech-vr.com/home/glview](https://www.realtech-vr.com/home/glview). I also had similar issue a while ago and it got fixed once I updated my windows 10 and nvidia driver

---

<div class="post-metadata">

**Author:** ![JTPenn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@JTPenn](https://forums.solar2d.com/u/JTPenn)\
**Post date:** [July 24, 2020, 12:19pm UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/6 "2020-07-24T12:19:58Z")

</div>

Lol there’s no code, I am simply saying Corona Simulator program is not accepting any network connection, If you want code that illustrates how connections are refused here is the AsyncHTTP sample from Corona  
display.setStatusBar( display.HiddenStatusBar )

```
local json = require("json")

-- Access Google over SSL:
local url = "https://encrypted.google.com"

local myTitle = display.newText("AsyncHTTP", display.contentCenterX, 15, native.systemFont, 20)
local myText = display.newText("(Waiting for response)", display.contentCenterX, 45, native.systemFont, 14)

local myInfoBackground = display.newRect( display.contentCenterX, display.contentCenterY + 30, display.contentWidth - 20, display.contentHeight - 80 )
local myInfo = display.newText("", myInfoBackground.x, myInfoBackground.y, myInfoBackground.width - 10, myInfoBackground.height - 10, "Courier New", 8)
myInfo:setFillColor( 0, 0, 0 )

local function networkListener( event )
	if ( event.isError ) then
		myText.text = "Network error!"
		myInfo.text = "networkRequest event: " .. json.prettify(event)

	else
		local rawResponse = event.response

		myText.text = "Server responded with HTTP status " .. event.status
		event.response = "<data from retrieved URL is available here>"
		myInfo.text = "networkRequest event: " .. json.prettify(event) .. "\n\n(see console for complete network event)"

		print ( "networkRequest event: " .. json.prettify(event) )
		print ( "RESPONSE: " .. tostring(rawResponse) )
	end
end

myInfo.text = "Requesting " .. url .. " ..."

network.request( url, "GET", networkListener )

-- Update the app layout on resize event.
local function onResize( event )
	-- Update title.
	myTitle.x = display.contentCenterX
	myText.x = display.contentCenterX

	-- Update response field background.
	myInfoBackground.x = display.contentCenterX
	myInfoBackground.y = display.contentCenterY + 30
	myInfoBackground.width = display.contentWidth - 20
	myInfoBackground.height = display.contentHeight - 80

	-- Update response field. This does not update cleanly, and needs to be recreated.
	local myInfoText = myInfo.text
	myInfo:removeSelf()
	myInfo = display.newText(myInfoText, myInfoBackground.x, myInfoBackground.y, myInfoBackground.width - 10, myInfoBackground.height - 10, "Courier New", 8)
	myInfo:setFillColor( 0, 0, 0 )
end
Runtime:addEventListener( "resize", onResize )

-- On tvOS, we want to make sure we stay awake.
-- We also want to ensure that the menu button exits the app.
if system.getInfo( "platformName" ) == "tvOS" then
	system.activate( "controllerUserInteraction" )
	system.setIdleTimer( false )
end

```

Response is always “Connection Failure”.  
Even plugins could not be downloaded!

I tried turning off antivirus and firewall, didn’t work  
Tried using different Internet Networks, didn’t work  
Tried to update Corona Simulator version, didn’t work  
Tried booting windows in Safe mode, couldn’t test because Corona requires OpenGL (which is turned off in Safe mode)

---

<div class="post-metadata">

**Author:** ![Andrey5045](https://forums.solar2d.com/user_avatar/forums.solar2d.com/andrey5045/32/146_2.png) [@Andrey5045](https://forums.solar2d.com/u/Andrey5045)\
**Post date:** [July 24, 2020, 2:12pm UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/7 "2020-07-24T14:12:36Z")

</div>

> [@JTPenn](#):
>
> ```auto
> local json = require("json")
> 
> -- Access Google over SSL:
> local url = "https://encrypted.google.com"
> 
> local myTitle = display.newText("AsyncHTTP", display.contentCenterX, 15, native.systemFont, 20)
> local myText = display.newText("(Waiting for response)", display.contentCenterX, 45, native.systemFont, 14)
> 
> local myInfoBackground = display.newRect( display.contentCenterX, display.contentCenterY + 30, display.contentWidth - 20, display.contentHeight - 80 )
> local myInfo = display.newText("", myInfoBackground.x, myInfoBackground.y, myInfoBackground.width - 10, myInfoBackground.height - 10, "Courier New", 8)
> myInfo:setFillColor( 0, 0, 0 )
> 
> local function networkListener( event )
> if ( event.isError ) then
> myText.text = "Network error!"
> myInfo.text = "networkRequest event: " .. json.prettify(event)
> 
> else
> local rawResponse = event.response
> 
> myText.text = "Server responded with HTTP status " .. event.status
> event.response = "<data from retrieved URL is available here>"
> myInfo.text = "networkRequest event: " .. json.prettify(event) .. "\n\n(see console for complete network event)"
> 
> print ( "networkRequest event: " .. json.prettify(event) )
> print ( "RESPONSE: " .. tostring(rawResponse) )
> end
> end
> 
> myInfo.text = "Requesting " .. url .. " ..."
> 
> network.request( url, "GET", networkListener )
> 
> -- Update the app layout on resize event.
> local function onResize( event )
> -- Update title.
> myTitle.x = display.contentCenterX
> myText.x = display.contentCenterX
> 
> -- Update response field background.
> myInfoBackground.x = display.contentCenterX
> myInfoBackground.y = display.contentCenterY + 30
> myInfoBackground.width = display.contentWidth - 20
> myInfoBackground.height = display.contentHeight - 80
> 
> -- Update response field. This does not update cleanly, and needs to be recreated.
> local myInfoText = myInfo.text
> myInfo:removeSelf()
> myInfo = display.newText(myInfoText, myInfoBackground.x, myInfoBackground.y, myInfoBackground.width - 10, myInfoBackground.height - 10, "Courier New", 8)
> myInfo:setFillColor( 0, 0, 0 )
> end
> Runtime:addEventListener( "resize", onResize )
> 
> -- On tvOS, we want to make sure we stay awake.
> -- We also want to ensure that the menu button exits the app.
> if system.getInfo( "platformName" ) == "tvOS" then
> system.activate( "controllerUserInteraction" )
> system.setIdleTimer( false )
> end
> 
> ```

RESPONSE: Google(function(){window.google={kEI:'7esaX8ypBfrG4-EP-  
… and so on…

Do you use  
“android.permission.INTERNET” ?

---

<div class="post-metadata">

**Author:** ![JTPenn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@JTPenn](https://forums.solar2d.com/u/JTPenn)\
**Post date:** [July 24, 2020, 2:35pm UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/8 "2020-07-24T14:35:21Z")

</div>

Yes I do…

Weird thing is, I built the app for windows, and problem still occurs, and previous windows builds now don’t work (they worked before).  
Even previous mobile apps doesn’t connect to internet in the simulator, but connects fine in mobile device.

So I am 100% pretty sure the problem is in my Laptop, but cannot understand why only happens to Corona Simulator and Corona’s windows built apps 🤔 🤔

---

<div class="post-metadata">

**Author:** ![XeduR](https://forums.solar2d.com/user_avatar/forums.solar2d.com/xedur/32/256_2.png) [@XeduR](https://forums.solar2d.com/u/XeduR)\
**Post date:** [July 24, 2020, 2:42pm UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/9 "2020-07-24T14:42:45Z")

</div>

Sounds to me like a firewall issue.

---

<div class="post-metadata">

**Author:** ![JTPenn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@JTPenn](https://forums.solar2d.com/u/JTPenn)\
**Post date:** [July 25, 2020, 1:50am UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/10 "2020-07-25T01:50:16Z")

</div>

I thought the same, but the fact that I completely disabled firewall and problem still persists makes me doubt it.

I have no clue as to what to do now.  
Tried removing Corona completely (data and files) and re-installing but still no luck !

---

<div class="post-metadata">

**Author:** ![JTPenn](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@JTPenn](https://forums.solar2d.com/u/JTPenn)\
**Post date:** [July 25, 2020, 2:16am UTC](https://forums.solar2d.com/t/no-internet-connection-in-simulator/351902/11 "2020-07-25T02:16:48Z")

</div>

Problem has been solved

Just did a System Restore. (only program that was installed after this System Image was ProtonVPN, but I was not using it anyways 🤨 🤨 )
