kubernetes-vagrant-coreos-cluster icon indicating copy to clipboard operation
kubernetes-vagrant-coreos-cluster copied to clipboard

Use 10.0.2.2 when proxy supporting? 'The connection to the server localhost:8080 was refused - did you specify the right host or port?'

Open wgtgithub opened this issue 7 years ago • 3 comments

I checked your Vagrantfile. In this coding, config.proxy.http set 'http://localhost:3128' If then master instance reffer own localhost IP. So it is better to use '10.0.2.2' instead 'localhost'. On the other hand, I tried vagrant up again after configured HTTP_PROXY. let you know the result.

wgtgithub avatar Nov 17 '17 03:11 wgtgithub

I modified configuration of proxy. But it is same result.

wgtgithub avatar Nov 17 '17 03:11 wgtgithub

I found the reason. It is referent proxy ip of host and guest os on virtualbox. As you know, host is using 'localhost:3128', on the other hand guest os is using '10.0.2.2:3128' as NAT. Your Vagrantfile is confused and modified set configure. Actually, I set '10.0.2.2:3128' and I found proxy configurations were changed '10.0.2.2:3128' after vagrant up. So host OS is referring 10.0.2.2:3128 as proxy, and refused...maybe. By the way I would like to this issue becomes completed, or closed, how do that?

wgtgithub avatar Nov 22 '17 00:11 wgtgithub

I am sorry but I don't have a proxy around here to validate this issue. If you feel it's solved, please just close the issue.

pires avatar Nov 22 '17 08:11 pires