You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/hostagent: Add the _LIMA_DIRECT_IP_PORT_FORWARDER environment variable to enable direct IP port forwarding to the VM.
### Direct IP Port Forwarding
To enable direct IP port forwarding, set the `_LIMA_DIRECT_IP_PORT_FORWARDER` environment variable to `true`:
```bash
export _LIMA_DIRECT_IP_PORT_FORWARDER=true
```
This feature makes Lima to use direct IP port forwarding instead of gRPC port forwarding.
When this feature is enabled, Lima tries to connect to the guest's IP address directly for port forwarding.
#### Fallback to gRPC Port Forwarding
Lima may fall back to gRPC port forwarding in the following cases:
- If the guest's IP address is not available, Lima falls back to gRPC port forwarding.
- If the guest's IP address is available but the connection to the guest's IP address fails, Lima also falls back to gRPC port forwarding.
- If the guest's IP address is not accessible from the host (e.g. localhost on guest), Lima falls back to gRPC port forwarding as well.
Signed-off-by: Norio Nomura <[email protected]>
0 commit comments