我希望10.211.11.100:8080使用ip 10.211.11.100转发到机器上的端口4369。
我希望10.211.11.101:8080使用ip 10.211.11.101转发到机器上的端口4369。
如果我尝试这样的话:
config.vm.network :forwarded_port, guest: 4369, host: 4369, host_ip: 10.211.11.100
config.vm.network :forwarded_port, guest: 4369, host: 4369, host_ip: 10.211.11.101
我收到如下错误消息:
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 4369 is already in use
on the host machine.
必须有一种方法可以在不同的IP上指定相同的端口号。我很感激任何帮助。
答案 0 :(得分:0)
你正在使用哪个流浪汉版本?
正常Support for port forwarding in an IP aliased environment问题已经解决,因为流浪汉1.9.2