New to this? Read How Socketchat works first.
Set it up
1
Find the server's local IP address
Your router gives each device on the network a local IP address, usually starting with
192.168., 10. or 172.16. to 172.31.. Find the one for the machine that will run the server:- macOS
- Linux
- Windows
en0 is usually Wi-Fi on a Mac laptop. If it prints nothing, try en1, or look in System Settings, Network, then your connection’s Details.2
Set up the server with that address
192.168.1.20 with the address you found.3
Allow the connection through the firewall
The first time
socketchat server run starts, your computer may ask whether to let it accept incoming connections.- macOS: choose Allow when asked whether
socketchatmay accept incoming network connections. If you chose Deny, change it in System Settings, Network, Firewall, Options. - Windows: Windows Defender Firewall asks whether to allow
socketchat.exe. Tick Private networks and choose Allow access. - Linux: most desktop systems have no firewall on by default. If yours uses
ufw, runsudo ufw allow 7444/tcp.
4
Invite people
/invite in a room for each friend. See the Quick start.Keep the address from changing
Your router hands out local addresses with DHCP, the protocol that gives devices an address when they connect, and it can give the server a different one next week. Invite links and members’ apps keep the old address, so they would stop reaching the server. A DHCP reservation tells the router to always give the server the same address. Routers differ, but the steps look like this:- Open your router’s admin page, often at
192.168.1.1or192.168.0.1, or in the router maker’s phone app. - Find the list of connected devices or the DHCP settings. It may be called DHCP reservation, Address reservation or Static lease.
- Pick the server machine and reserve its current address.