# Unable to Connect to the Internet: At bootup

**URL:** <https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226>\
**Category:** Product support\
**Created:** [May 19, 2020, 6:29pm UTC](https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226 "2020-05-19T18:29:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greenwac](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@Greenwac](https://forums.balena.io/u/Greenwac)\
**Post date:** [May 19, 2020, 6:29pm UTC](https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226/1 "2020-05-19T18:29:40Z")

</div>

When I boot the new balenaOS, freshly made from the dashboard and etched using balena etcher, it fails to boot. I have searched everywhere for how to fix this, and managed to track the issue down to an internet connection issue. The ACT led blinks four times at bootup until turning off. Using the troubleshooting guide found here: [https://www.balena.io/docs/faq/troubleshooting/troubleshooting/#error-notifications](https://www.balena.io/docs/faq/troubleshooting/troubleshooting/#error-notifications)  
It is clear that I have a connection problem. I have checked the “resin-wifi-01” file and the SSID and passcode are correct. The next recommended step is to: check that your network is not restricting or blocking the ports specified in the balena network requirements. I then followed the link to find the ports that need opened but I have no idea how to check that they are open or open them if they are blocked. Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![ljewalsh](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ljewalsh/32/3783_2.png) [@ljewalsh](https://forums.balena.io/u/ljewalsh)\
**Post date:** [May 19, 2020, 9:54pm UTC](https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226/2 "2020-05-19T21:54:11Z")

</div>

Hi there,

It sounds like it probably is a network issue. The easiest way to troubleshoot this would be to set up internet connection sharing between your laptop and your device. Do you have an ethernet cable? Here are some guides on how to do this for different operating systems:

- Mac: [https://www.mactip.net/share-internet-connection-mac/](https://www.mactip.net/share-internet-connection-mac/)
- Windows: [https://www.informit.com/articles/article.aspx?p=2455390&seqNum=6](https://www.informit.com/articles/article.aspx?p=2455390&seqNum=6)
- Linux: [https://askubuntu.com/questions/359856/share-wireless-internet-connection-through-ethernet](https://askubuntu.com/questions/359856/share-wireless-internet-connection-through-ethernet)

Once you have the internet connection setup you should be able to ssh into your device using: `ssh -p 22222 root@your-pi-ip-address`

From here try `journalctl -ab` to print out the logs and see what’s going on

---

<div class="post-metadata">

**Author:** ![Greenwac](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@Greenwac](https://forums.balena.io/u/Greenwac)\
**Post date:** [May 19, 2020, 10:29pm UTC](https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226/3 "2020-05-19T22:29:23Z")

</div>

Thank you for the help. This seemed very promising and I set it up with a functional raspberry pi first, and the internet connection did successfully share. Then I changed it out and connected it to the balenaOS one to attempt to boot it up and it still blinks the ACT led 4 times and sits on the white screen with the balena logo in the center. Are there any other ways this problem could happen? I do not believe it is the internet after this did not work.

---

<div class="post-metadata">

**Author:** ![ljewalsh](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ljewalsh/32/3783_2.png) [@ljewalsh](https://forums.balena.io/u/ljewalsh)\
**Post date:** [May 19, 2020, 11:03pm UTC](https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226/4 "2020-05-19T23:03:52Z")

</div>

Hey,

Were you able to ssh into the device? If the device is connected, you should be able to find the ip address using `arp -a` from your pc/laptop. Try the journalctl from there.

If that doesn’t work, try reflashing the image for the device that isn’t working

LJ

---

<div class="post-metadata">

**Author:** ![Greenwac](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@Greenwac](https://forums.balena.io/u/Greenwac)\
**Post date:** [May 19, 2020, 11:57pm UTC](https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226/7 "2020-05-19T23:57:30Z")

</div>

Thank you for the quick response! I tried using the “ssh -p 22222 root@ipaddress” line and it returned “Permission denied (publickey).”

---

<div class="post-metadata">

**Author:** ![nghiant2710](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@nghiant2710](https://forums.balena.io/u/nghiant2710)\
**Post date:** [May 20, 2020, 7:38am UTC](https://forums.balena.io/t/unable-to-connect-to-the-internet-at-bootup/117226/8 "2020-05-20T07:38:20Z")

</div>

Hi,

On production images require an SSH key to be added to the `config.json` file in order to ssh into the device but development images have passwordless root access enabled so you can edit the `config.json` and add your key there (More details about the `config.json` file can be found here [https://www.balena.io/docs/learn/more/masterclasses/host-os-masterclass/#6-configjson](https://www.balena.io/docs/learn/more/masterclasses/host-os-masterclass/#6-configjson)).

Or if you have an ethernet cable, just plug it in your device and see if it works.
