Timeout when I want to access to a web site (hosted in apache container) from the same container

Hello,
I’m a docker desktop user (windows).
I have a problem to access to my host, from a container.

My container is a web server (apache). It hosts a web site + a web service

With my browser, I can access to my web site in http from het44 (it works fine)
But from my apache container, when I’m trying to access to the web site, it does not connect (timeout)

A test I did is :

docker-compose exec apache bash
root@4bbd83d91744:/var/www# wget http://het44/service/webservice.php
–2023-04-21 10:22:39-- http://het44/service/webservice.php
Resolving het44 (het44)… 172.17.10.66, 172.31.80.1, ::ffff:172.31.80.1, …
Connecting to het44 (het44)|172.17.10.66|:80… failed: Connection timed out.
It can’t reach to the server (timeout after a long time)

If I try to access to any page of the site from the container, it is the same problem.
172.17.10.66 is my windows ip
172.31.80.1 is my wsl2 ip

Here is my docker-compose.yml file :

version: "3.8"
services:
 
  apache:
    build:
      context: ./apache
      dockerfile: Dockerfile
      args:
        - HTTP_PROXY=${HTTP_PROXY}
    ports:
      - "${APACHE_HTTP_PORT}:80"

What can I do to get it work ?
Thanks

What is responsible for the successfull hostname resolution on your host? dns? manually entry in hosts file?

Hello,
It’s my computer name, I didn’t set anything else.