Hopefully you managed to figure this out some time in the past several months - but I’ve just had to figure this out as I was in a similar situation. In case anyone else finds this thread while hunting for an answer, here’s what I’ve figured out:
- Edit
.devcontainer/devcontainer.jsonand add"--network=host"to therunArgsarray - Rebuild your dev container (command palette → Remote Containers: Rebuild Container)
- (re)Start Home Assistant (command palette → Tasks: Run Task → Run Home Assistant Core)
Your dev container should then be connected to your host network.