Predictable local ports
Automatic by default. Fixed when an application expects it.
The portal normally chooses a unique available port for every service, avoiding collisions when many remote computers expose the same standard port. When a local client expects a particular endpoint, pin that service to a port of your choice.
Keep an existing client configurationPin an Ollama service to localhost:11434, for example, and software already configured for Ollama’s default endpoint can connect through DirectLink.
The choice persistsUser-selected mappings are saved in settings.json. The same specific service receives the same local port the next time the portal starts.
GUI and CLI stay in syncMTCode Portal and mtportal-cli use the same settings store, so a mapping selected in one interface is available in the other.
Settings follow the operating systemThe file lives under AppData on Windows, Application Support on macOS, and the XDG configuration directory (normally ~/.config) on Linux.