Network access from host to debian (vz) #3414
-
Hi team! my template:
the application is accessible locally when ssh inside default instance
but nothing comes when trying to curl from my host (mac) with 'curl -k 192.168.5.15':
ima --version |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You would access it as https://lima-vm.io/docs/faq/#cannot-access-the-guest-ip-192168515-from-the-host |
Beta Was this translation helpful? Give feedback.
-
networks:
- vzNAT: true
$ limactl tunnel default
WARN[0000] `limactl tunnel` is experimental
Open <System Settings> → <Network> → <Wi-Fi> (or whatever) → <Details> → <Proxies> → <SOCKS proxy>,
and specify the following configuration:
- Server: 127.0.0.1
- Port: 52014
The instance can be connected from the host as <http://lima-default.internal> via a web browser. |
Beta Was this translation helpful? Give feedback.
Option 1. Access the port via
localhost
(127.0.0.1). This should be the easiest option.Option 2. Enable vzNAT. The IP will change.
Option 3: Enable socket_vmnet. The setup steps are relatively complex. The IP will be allocated from 192.168.105.0/24.
Option 4: Use
limactl tunnel