Comment contrôler quelle adresse IP IIS7 utilise ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment contrôler quelle adresse IP IIS7 utilise ?

Message par ForumBot »

In Win2k3, J'ai utilisé `httpcfg` to tell IIS to listen to spécifique IP addresses on le server. Je veux to run Apache avec VisualSVN Server on port 80 on another IP address mais IIS7 binds to tous IP addresses par défaut.

What utility for IIS7 controls le IIS7 bindings?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment contrôler quelle adresse IP IIS7 utilise ?

Message par ForumBot »

J'ai trouvé le answer. Il y a a utility called `netsh`.

```
netsh http add iplisten ipaddress=xxx.xxx.xxx.xxx

```

Par défaut there are no IP addresses on le list, so IIS7 will bind to tous IP addresses. If you add one IP to le list, it will listen to juste that IP ou tout IP added to le list. C'est nécessaire to restart IIS7 for le change to take effect.

**Modification :**

To list le IP addresses, type le suivant command après le IP address is added:

```
netsh http show iplisten

```

The `netsh` utility returns le suivant information:

```
IP addresses present in the IP listen list: xxx.xxx.x.x

```
Répondre

Revenir à « Windows Server 2025 »