---
title: "Check Access To Public Internet"
canonical: "https://wiki.patientsknowbest.com/space/api/4493017130/Check%20Access%20To%20Public%20Internet"
format: markdown
---
> Macro (toc)

# Instructions 

> 📝 Following instruction on this page you can test if your host has accses to the public internet.

On the host that runs your service run the next command:

```shell
echo quit | timeout 3 telnet 8.8.8.8 53
```

The above command will try for three seconds to connect to a commonly known named server hosted by google (port `53` is the default port for DNS services).

> ℹ️ **TIP**: If google services are not available in your organisation, please pick a suitable alternative IP address port pair. In the UK `echo quit | timeout 3 telnet 1.1.1.1 53` is probably a good pick IF you are not limited to N3/HSNC. `1.1.1.1` is cloudflare managed domain server.

# Expected Success Output

```
Trying 8.8.8.8...
Connected to 8.8.8.8.
Escape character is '^]'.
Connection closed by foreign host.
```

> ✅ This means that your machine **can establish a network connection** to a google server on port 53.

# Expected Failure Output

```
Trying 8.8.8.8...
```

> ❌ Absence of `Connected to 8.8.8.8.` indicates that your client cannot establish a network connection to a `8.8.8.8` server on port `53`.

This is most probably an issue in your network.

> ℹ️ **NEXT**: Try to resolve the issue within your organization.