https://rancher.com/ logo
Title
g

great-plumber-65838

04/09/2023, 5:37 PM
Hi All,I am using rancher desktop on windows pc to up haproxy (loadbalancer) with the following docker-compose configuration attached as image .Problem is even haproxy image is getting up still I am not able to access my site via "*mydocker-firstSite.ui*",although i can acess it at "*127.0.0.1:9002*".I have also mentioned the mapping in hosts file C:\Windows\System32\drivers\etc as 127.0.0.1 mydocker-firstSite.ui. I tried pinging "*host.docker.internal*" from haproxy (loadbalancer) using terminal but it failed.Also I am behind company proxy.
c

calm-sugar-3169

04/11/2023, 4:59 PM
When you say pining “*host.docker.internal*” from haproxy do you mean from haproxy container it fails? if so, did you change the content of
/etc/hosts
file?
g

great-plumber-65838

04/12/2023, 7:29 AM
@calm-sugar-3169 Yes, I tried pinging within the haproxy. I only added this mapping 127.0.0.1 mydocker-firstSite.ui in windows host file *C:\Windows\System32\drivers\etc.*If any other mapping or config need to be done,let me know.
c

calm-sugar-3169

04/12/2023, 5:48 PM
@great-plumber-65838 can you share the out of the following command when you run it on the windows host?
netstat -ano | findstr '9002'
g

great-plumber-65838

04/18/2023, 4:28 PM
Hi @calm-sugar-3169 thanks for the query. This issue has already been resolved by me recently. It seems this was relates to firewall of my system.
I have used Set-Firewall -Profile Private -DisabledInterfaceAliases "vEthernet(WSL)" Set-Firewall -Profile Public -DisabledInterfaceAliases "vEthernet(WSL)"
👍 1