Web und öffentliche IP-Adresse
Web und öffentliche IP-Adresse
You're looking to control your TrueNAS Scale server from a home PC using AnyDesk, without using a static IP or public address. It sounds like you're trying to access it remotely while keeping your connection private. This should be feasible if your provider doesn't assign a fixed IP and you can use dynamic routing or port forwarding on your router. You likely won't need a static IP for basic remote access, but setting up port forwarding might help. AnyDesk itself handles the connection, so you shouldn't need to worry about port changes unless your network settings require it. Just ensure your router allows remote access and adjust firewall rules if needed.
I'm connecting anydesk to my machine and possibly running it. After that, I'll power on the server on the same local network.
Public IP addresses can be routed over the internet. Private IPs cannot. These private ones are typically used inside your home router for the local network. The router applies NAT for any data needing to go outside the network. If your ISP uses NAT, you're right—port forwarding isn't possible since you share a public IP with many users. I've heard about using a VPS with a VPN to connect securely, though that involves a monthly cost.
You might issue a command to your device over the web and then trigger the WoL transmission. The most common approach involves using ntfy.sh, which lets you notify your PC. You can set up a notification from your phone that prompts a script on your computer to dispatch the WoL packet across your local network. It includes an interface for sending test alerts via the app at https://docs.ntfy.sh/subscribe/cli. Just remember: you don’t need to forward ports or expose a public IP.
To activate your server, send a signal from your mobile device, which your PC then processes and forwards the packet within the LAN. No special configuration is necessary.
1. Sign up on ntfy.sh
2. Create a topic with a unique, lengthy name
3. Subscribe on your mobile device
4. Visit the installation guide for your OS
5. Launch a terminal (PowerShell) in the folder and run the subscription command
The script will assemble the packet using your MAC address and send it over UDP to the server’s broadcast address.
Software such as AnyDesk, TeamViewer or Parsec doesn't require a public IP address. You can connect to a PC on your local network and then transmit WOL packets to that machine. If you have a CGNAT setup (as indicated by your replies), port forwarding won't be possible either.