Port Forwarding & Dynamic DNS
This guide will show you how to port-forward using your home's router, so you can connect directly to your BlueBubbles server using a Dynamic DNS. No need for a third-party proxy service.
Before you begin, make sure that the following pre-requisites apply to you. If any of them do not apply to you, this will not be possible for you, and you may need to stick to the build-in proxy services, pay for one, or self-host a reverse proxy.
- You have access to your network's router
- This doesn't need to be physical access
- You will need to know how to login to your router's UI via your browser. This guide will walk you through part of it but will not provide you with the required authentication information. You must already know this.
- This will not work on school or work networks
- Your macOS device must already be setup (physical or VM)
Read these notes before you begin, just in case...
- If you are running macOS in a VM, make sure the network adapter is configured as "Bridged".
- This means that the VM will connect directly to your router, rather than through the host computer.
- This allows external connections to connect directly to your mac server.
- By default, this setup utilizes HTTP, not HTTPS. In order to use HTTPS, you will need to know how to setup a certificate with your dynamic DNS provider. Whether that be via your router, or manual using Let's Encrypt.
- This implies that your data is unencrypted when no certificate is implemented.
- You can utilize the
Encrypt Messagesoption in the BlueBubbles server settings to protect some of your data, but not all.
- If no certificate is implemented, and you are connecting over HTTP, BlueBubbles Web will not be usable. This is because browsers now require a secure connection when making API calls to a server.
Now that you've read the pre-requisites and the "before you begin" notes, you can start the setup.
- 1.Get the IP of both your router and your macOS device (or VM).
- 1.To get this information, open
System Preferencesand find the
- 2.Click on the connected
WiFidevice on the left sidebar.
- 3.On the right-hand side, find the
IP Addressentry, and under that, the
- 1.If you do not see
Routerentries on the right side, click
Advanced, and then select the
- 4.Copy those IPs somewhere you can reference.
- 2.Open your browser and navigate to your router's home page
- 1.In your browser's URL bar, enter
http://<router IP>, replacing
<router IP>with the router entry you copied earlier. If your router's home page connects over HTTPS, use
https://instead. However, the majority of routers utilize HTTP by default.
- 2.Your router's IP will typically look something like one of the following:
- 3.If you get one of those
Your connection isn't privatebrowser pages, simply type
thisisunsafedirectly into the browser window (not the URL bar) and the site should load.
- 3.When prompted to enter your login credentials, enter your username and password to login.
- 1.It's typical that the router has the default username and password printed on a sticker, on the device itself.
- 2.If you do not know your username or password, it's fairly typical for the default username to be
admin. However, the password can vary by manufacturer. A list of possible default credentials can be found here.
- 4.Next, you will need to find the Port-forwarding settings. Many routers will list it in the sidebar under
Port Forwarding, or similar. However, some routers may hide those settings under the
WANtab in the sidebar.
- 5.Once on the port forwarding configuration page, click the button to add a new port forwarding configuration/profile.
- 6.You will be prompted to enter some information:
- 1.Name: You can enter any name
- 2.Protocol: TCP or Both
- 3.External Port: This is the port that you will use in your server URL to connect.
- 1.This can be the same as the port that BlueBubbles is running on.
- 4.Internal IP Address: The IP of your macOS device that you copied earlier
- 5.Internal Port: The port that the BlueBubbles server is configured with
- 7.Save the configuration/profile
- 8.Read the next section to figure out how to verify that everything was setup properly
This section will show you how to verify that you've port-forwarded correctly.
- 2.In the
Portfield, enter in the
External Portyou configured when setting up the port-forwarding.
- 3.Click the
- 1.You will receive a
Successmessage if you've configured port-forwarding correctly.
- 2.You will see an
Errorif you did not configure port-forwarding correctly.
If your verification failed, it means something went wrong in the process. Here are some things you can try to possibly fix any issues:
- Go through the guide again and make sure that everything is configured properly
- If you did not setup a static IP for your mac, your mac's IP Address may have changed, and you need to configure your port-forwarding profile with the new IP Address.
- Maybe you entered the BlueBubbles port into the CanYouSeeMe website, and not the External Port you configured within your router.
- Run the BlueBubbles server and try again.
Once you have setup port-forwarding, the next step would be to sign up and use a Dynamic DNS service to connect your home IP Address to a domain. Here are some free Dynamic DNS providers that are fairly popular and well-liked:
Once you have one picked, sign up for a free account. And setup a new Dynamic DNS configuration.
Next, you will need to download the corresponding "DUC" (Dynamic Update Client) for your provider. This allows your mac to update the DNS record whenever it's router's external IP changes. Without it, you will lose connection to your server whenever your external IP changes.
Here are the DUC clients for the providers above:
Once the DUC is installed, login or configure it with your account.
Lastly, add the DUC app to your mac account's login items so it runs each time the computer is rebooted.
You will now be able to connect to your BlueBubbles server via your Dynamic DNS domain + Port Forwarded Port. For example:
In order to use your new Dynamic DNS with BlueBubbles, simply follow these steps.
- 1.Open your BlueBubbles server
- 2.Open the Settings tab
- 3.Find the
Proxy Servicedrop down and select
- 4.You will get a popup window asking you for a server URL. Enter your dynamic DNS URL + Port (i.e.
- 1.If you have a certificate setup, set your server URL using the HTTPS schema. Make sure to also enable the
Use HTTPSoption in the server's settings and to manually load your certificates into the BlueBubbles
- 5.You should now be configured to use BlueBubbles via Port-forwarding.