Reach a server running inside a VM from your Mac
Discover and forward the ports a Linux guest is listening on. 1VMTool finds them automatically with updated guest tools, publishes them on the Mac's loopback address, reports collisions, and can expose a port on the LAN when you ask it to.
Step by step
1vm ports devEvery TCP and UDP port the guest is listening on, discovered through the Linux guest tools.
1vm ip devThe guest's address, bare, for scripting.
1vm config-global listLibrary memory budget and the Linux port defaults that decide what is published automatically.
1vm set dev network bridged:en0Put the guest on your LAN instead of NAT, when loopback forwarding is not what you want.
Worth knowing
- Discovery needs the updated Linux guest tools inside the machine. Without them the Ports tab and `1vm ports` have nothing to read.
- A port already taken on the Mac is reported as a collision rather than silently remapped.
- Machines created from a recipe report their address from the guest tools when the host's DHCP lease file is unavailable.
The long version
This page is the short path. For the whole area in prose — the options, the edge cases and what to do when it does not work — read Networking.
Related
Create a Linux VM
One command to a booted Debian, Ubuntu or Omarchy guest — or a prepared toolchain with nothing left to install.
Read it →Run Windows on Apple silicon
The first-party 1VM engine boots Windows on ARM without QEMU — installed from your own ISO, with the virtio drivers attached.
Read it →Snapshot and restore a VM
A snapshot is an APFS clone, not a copy — take and restore finish in well under a millisecond no matter how big the disk.
Read it →Frequently asked questions
Do I have to configure forwarding by hand?
No. Ports are discovered inside the guest and published on localhost automatically, with the defaults under your control in `1vm config-global`.
Can other machines on my network reach the guest?
Only if you ask. LAN exposure is opt-in per port; the default publishes to loopback only. Bridged networking is the other route, and puts the guest on your LAN with its own address.
Does this work for Windows guests?
Automatic port discovery is a Linux guest-tools feature. A Windows guest reaches the network normally, but the listening-port list comes from the Linux tools.