Ensure the hosting device has a static IP address to prevent potential connectivity issues due to IP changes. This setup will enable seamless access to Puter and its services across your local network.
The hosts file is a straightforward way to map domain names to IP addresses on individual devices. It's simple to set up but requires manual changes on each device that needs access to the domains.
C:\Windows\System32\drivers\etc\hosts
.Add lines for your domain and subdomain with the server's IP address, in the following format:
192.168.1.10 puter.local
192.168.1.10 api.puter.local
sudo nano /etc/hosts
.Add lines for your domain and subdomain with the server's IP address, in the following format:
192.168.1.10 puter.local
192.168.1.10 api.puter.local
Save and exit the editor.
Some routers allow you to add custom DNS rules, letting you configure domain names network-wide without touching each device.
puter.local
and api.puter.local
to the hosting device's IP address.This method's availability and steps may vary depending on your router's model and firmware.
Setting up a local DNS server on your network allows for flexible and scalable domain name resolution. This method works across all devices automatically once they're configured to use the DNS server.
contributors note: feel free to add any software you're aware of which might help with this to the list. Also, feel free to add instructions here for specific software; our goal is for Puter to be easy to setup with tools you're already familiar with.
puter.local
and api.puter.local
to the IP address of your Puter hosting device.By setting up a local DNS server, you gain the most flexibility and control over your network's domain name resolution, ensuring that all devices can access Puter and its API without manual configuration.
Please note the self-hosting feature is still in alpha and a public production
deployment is not recommended at this time. However, if you wish to host
publically you can do so following the same steps you normally would to configure
a domain name and ensuring the api
subdomain points to the server as well.