Only needed if a transfer won’t connect. Works on Windows and Linux.
ShardLock sends files directly, computer to computer. For that, the person receiving a file needs their router to let the sender’s connection reach their PC. “Port forwarding” tells your router: “when a ShardLock connection arrives on port 9500, hand it to my computer.” You set this up once.
This is your PC’s address on your home network (starts with 192.168. or 10.).
cmd, press Enter.ipconfig and press Enter.192.168.1.42. Write it down.hostname -I The first address (e.g. 192.168.1.42) is your local IP. (Or run ip addr show and look for the inet 192.168.… line on your Wi-Fi/Ethernet adapter.)In the same ipconfig output, find Default Gateway — usually 192.168.1.1 or 192.168.0.1.
ip route | grep default
The address after via is your router (e.g. 192.168.1.1).
http:// + your gateway address (e.g. http://192.168.1.1).admin / admin or admin / password).Every router’s menus differ, but the setting is called Port Forwarding (sometimes under Advanced, NAT, Firewall, Virtual Server, or Gaming). Add a new rule with:
192.168.1.42)Save / Apply. That’s the router done.
AT&T’s gateways are a little different, so here are the exact steps:
http://192.168.1.254 — note it’s .254, not .1, on AT&T.10. or 100.64.), AT&T has you
on shared/CGNAT and no port forwarding can work until that changes — you have to call them.
“I’m on AT&T Fiber and I need to accept inbound connections for an application. Can you confirm I have a public IPv4 address and that I’m not behind CGNAT / carrier-grade NAT? If I am, please move me to a public (dynamic) IP.”
Most AT&T Fiber lines already have a public IP, so usually the gateway steps above are all you need — the call is only if the CGNAT check above says otherwise.
Open Command Prompt as Administrator (right-click → Run as administrator) and run:
netsh advfirewall firewall add rule name="ShardLock" dir=in action=allow protocol=TCP localport=9500
Or do it in the GUI: Windows Security → Firewall & network protection → Advanced settings → Inbound Rules → New Rule → Port → TCP → 9500 → Allow.
Pop!_OS ships with its firewall off by default, so usually there’s nothing to do. If you
enabled ufw, allow the port both directions (in to receive, out to send):
sudo ufw allow 9500/tcp
sudo ufw allow out 9500/tcp
allow out 9500/tcp
rule above so ShardLock can reach the other person.
Routers hand out local IPs that can change on reboot, which would break your forward. In your router settings, look for DHCP Reservation (or Static Lease) and reserve your computer’s current IP to its device, so it stays the same.
Make sure ShardLock is open (it needs to be running to receive), then have a buddy on a different network send you a small file. If it connects, you’re done — you only have to set this up once.