Comment trouver son adresse IP sur Windows, Mac & Linux
Votre adresse IP identifie votre appareil sur un réseau. Voici comment trouver l'IP locale (privée) et publique.
IP Locale (Privée) — Votre appareil sur le LAN
Windows (10/11)
- Appuyez Win+R, tapez
cmd, Entrée - Tapez
ipconfiget Entrée - Regardez sous votre adaptateur actif (Ethernet ou Wi-Fi) pour Adresse IPv4 (ex. 192.168.1.100)
macOS
- Ouvrez Terminal (⌘+Espace → « Terminal »)
- Tapez
ifconfig | grep "inet "ouipconfig getifaddr en0(Wi-Fi) /ipconfig getifaddr en1(Ethernet) - Ou : Réglages Système → Réseau → sélectionnez connexion active → IP affichée
Linux
- Ouvrez Terminal
- Tapez
ip addr show(moderne) ouifconfig(legacy) - Trouvez
inetsous votre interface (ex.eth0,wlan0)
IP Publique — Votre réseau sur Internet
C'est ce que voient les sites web. Méthodes simples :
- Recherchez "what is my ip" dans Google/DuckDuckGo
- Visitez ipinfo.io, whatismyip.com, icanhazip.com
- Ligne de commande :
curl ifconfig.meoucurl icanhazip.com
Comprendre la différence
| IP Privée | IP Publique | |
|---|---|---|
| Portée | Réseau local seulement | Internet global |
| Plages | 10.x.x.x, 172.16-31.x.x, 192.168.x.x | Assignée par FAI |
| NAT | Traduite par routeur | Visible par sites web |
| Change | Renouvellement bail DHCP | Attribution FAI (dynamique/statique) |
Pourquoi ça importe
- Redirection de ports / hébergement serveur (besoin IP privée + config routeur)
- Accès distant / config VPN
- Dépannage réseau
- Géolocalisation, règles pare-feu, contrôles d'accès
