Engineering Tools for AI

Programmation

Termes réseau

Guide consultable des termes réseau utiles en développement local, requêtes navigateur, API, Docker et déploiement.

42 termes

Adresses et noms

IP address

IP address

192.168.1.25

Sens

A numeric address used to find a device on a network.

Quand l'utiliser

Use it when another device needs to reach your computer, server, or container host.

Exemple

192.168.1.25

Exemple de demande

Explain which IP address I should use from another device.

Adresses et noms

IPv4

IPv4

192.168.0.10

Sens

The common four-part IP address format.

Quand l'utiliser

Most local network examples use IPv4 addresses such as 192.168.x.x or 10.x.x.x.

Exemple

192.168.0.10

Exemple de demande

Tell me whether this address is an IPv4 local network address.

Adresses et noms

IPv6

IPv6

::1

Sens

A newer, longer IP address format designed to provide many more addresses.

Quand l'utiliser

You may see IPv6 in logs, localhost bindings, or server network output.

Exemple

::1

Exemple de demande

Explain whether this log is using IPv4 or IPv6.

Adresses et noms

localhost

localhost

http://localhost:3000

Sens

A name that means the same machine where the code or browser is running.

Quand l'utiliser

Use it from the same computer that runs the development server.

Attention

On a phone, localhost means the phone itself, not your development computer.

Exemple

http://localhost:3000

Exemple de demande

Explain why localhost works on my computer but not on my phone.

Adresses et noms

127.0.0.1

127.0.0.1

http://127.0.0.1:3000

Sens

The common IPv4 loopback address for the current machine.

Quand l'utiliser

Use it as a numeric alternative to localhost.

Exemple

http://127.0.0.1:3000

Exemple de demande

Explain whether localhost and 127.0.0.1 are equivalent here.

Adresses et noms

0.0.0.0

0.0.0.0

next dev -H 0.0.0.0

Sens

An address used by servers to listen on all available network interfaces.

Quand l'utiliser

Use it when another device on the same network needs to reach your dev server.

Attention

It can expose a development server more broadly than localhost.

Exemple

next dev -H 0.0.0.0

Exemple de demande

Explain whether this dev server should bind to 0.0.0.0.

Adresses et noms

Hostname

Hostname

my-laptop.local

Sens

A readable name for a device or server.

Quand l'utiliser

Use it when a network name is easier to remember than an IP address.

Exemple

my-laptop.local

Exemple de demande

Explain whether this hostname resolves to the expected IP.

Adresses et noms

Domain

Domain

example.com

Sens

A human-readable internet name for a website or service.

Quand l'utiliser

Use domains for public sites instead of asking users to remember server IP addresses.

Exemple

example.com

Exemple de demande

Explain what domain this deployed site should use.

Adresses et noms

DNS

DNS

example.com -> 93.184.216.34

Sens

The system that translates domain names into IP addresses.

Quand l'utiliser

Use DNS records when connecting a domain to a hosting service or server.

Exemple

example.com -> 93.184.216.34

Exemple de demande

Explain which DNS record is needed for this domain.

Ports et connexions

Port

Port

3000

Sens

A number that identifies which app or service receives traffic on a machine.

Quand l'utiliser

Development servers often use ports such as 3000, 3001, 5173, or 8000.

Exemple

3000

Exemple de demande

Tell me which port this server is using.

Ports et connexions

Listen

Listen

Ready on http://localhost:3000

Sens

A server is listening when it is ready to accept requests on an address and port.

Quand l'utiliser

Check listening output to know which URL can be opened in the browser.

Exemple

Ready on http://localhost:3000

Exemple de demande

Explain where this server is listening.

Ports et connexions

Port forwarding

Port forwarding

8080 -> 3000

Sens

Forwarding traffic from one port or machine to another port or machine.

Quand l'utiliser

Use it in routers, tunnels, containers, and remote development environments.

Exemple

8080 -> 3000

Exemple de demande

Explain where this port is forwarded.

Ports et connexions

Firewall

Firewall

Allow incoming connections on port 3000

Sens

A rule system that allows or blocks network traffic.

Quand l'utiliser

Check it when a server runs locally but another device cannot connect.

Exemple

Allow incoming connections on port 3000

Exemple de demande

Explain whether a firewall could block this local connection.

Requêtes web

URL

URL

https://example.com/docs?page=1

Sens

The full address used to request a web resource.

Quand l'utiliser

A URL includes protocol, host, optional port, path, query string, and sometimes a fragment.

Exemple

https://example.com/docs?page=1

Exemple de demande

Break this URL into protocol, host, port, path, and query.

Requêtes web

Path

Path

/ko/reference/docker

Sens

The part of a URL that identifies a route or resource on the server.

Quand l'utiliser

Use it to understand which page or API endpoint is being requested.

Exemple

/ko/reference/docker

Exemple de demande

Tell me which app route this URL path maps to.

Requêtes web

Query string

Query string

?page=1&lang=ko

Sens

The part of a URL after ? that passes extra parameters.

Quand l'utiliser

Use it for filters, page numbers, search terms, and lightweight options.

Exemple

?page=1&lang=ko

Exemple de demande

Explain what query parameters this URL sends.

Requêtes web

HTTP

HTTP

http://localhost:3000

Sens

The basic protocol browsers and servers use for web requests and responses.

Quand l'utiliser

Local development often uses HTTP before production HTTPS is configured.

Exemple

http://localhost:3000

Exemple de demande

Explain whether this local URL uses HTTP or HTTPS.

Requêtes web

HTTPS

HTTPS

https://example.com

Sens

HTTP protected by TLS encryption.

Quand l'utiliser

Use HTTPS for public sites, login, cookies, payments, APIs, and production traffic.

Exemple

https://example.com

Exemple de demande

Explain whether this deployed site needs HTTPS.

Requêtes web

HTTP method

HTTP method

GET /api/tools

Sens

A verb that tells the server what kind of action the request wants.

Quand l'utiliser

GET usually reads data, while POST usually creates or submits data.

Exemple

GET /api/tools

Exemple de demande

Explain which HTTP method this API request should use.

Requêtes web

Status code

Status code

200 OK / 404 Not Found / 500 Internal Server Error

Sens

A number that summarizes the result of an HTTP response.

Quand l'utiliser

Use it to quickly separate success, redirect, client error, and server error responses.

Exemple

200 OK / 404 Not Found / 500 Internal Server Error

Exemple de demande

Explain what this HTTP status code means.

Requêtes web

Header

Header

Content-Type: application/json

Sens

Metadata sent with an HTTP request or response.

Quand l'utiliser

Headers carry content type, authorization, cookies, cache rules, and CORS settings.

Exemple

Content-Type: application/json

Exemple de demande

Explain the important headers in this response.

Requêtes web

Body

Body

{"name":"demo"}

Sens

The main data content sent in an HTTP request or response.

Quand l'utiliser

POST and PUT requests often send JSON data in the body.

Exemple

{"name":"demo"}

Exemple de demande

Explain what data this request body sends.

Sécurité navigateur

Origin

Origin

http://192.168.1.25:3000

Sens

The combination of protocol, host, and port.

Quand l'utiliser

Use origin to reason about CORS, cookies, and browser security rules.

Attention

Changing only the port creates a different origin.

Exemple

http://192.168.1.25:3000

Exemple de demande

Identify the origin of this URL.

Sécurité navigateur

Same-origin policy

Same-origin policy

https://app.example.com cannot freely read https://api.example.com

Sens

A browser rule that restricts how pages can read data from other origins.

Quand l'utiliser

Use it to understand why browser API requests can fail even when the server is reachable.

Exemple

https://app.example.com cannot freely read https://api.example.com

Exemple de demande

Explain whether this is a same-origin policy problem.

Sécurité navigateur

CORS

CORS

Access-Control-Allow-Origin: https://app.example.com

Sens

A server-side permission system that lets browsers use responses from another origin.

Quand l'utiliser

Use it when a frontend app calls an API hosted on a different origin.

Attention

CORS must be allowed by the server that sends the response.

Exemple

Access-Control-Allow-Origin: https://app.example.com

Exemple de demande

Tell me whether this CORS error should be fixed in frontend code or server settings.

Sécurité navigateur

Cookie

Cookie

Set-Cookie: session=abc; HttpOnly

Sens

Small data stored by the browser and sent back to matching sites.

Quand l'utiliser

Cookies are often used for sessions, preferences, and authentication state.

Exemple

Set-Cookie: session=abc; HttpOnly

Exemple de demande

Explain whether this login state is stored in a cookie.

Sécurité navigateur

Session

Session

session_id=abc123

Sens

A way to remember user state across multiple requests.

Quand l'utiliser

Use sessions to maintain login state or temporary server-side user data.

Exemple

session_id=abc123

Exemple de demande

Explain how this app keeps the user session.

Sécurité navigateur

Token

Token

Authorization: Bearer <token>

Sens

A string used to prove identity or permission.

Quand l'utiliser

Use tokens for API authentication, temporary access, and service-to-service requests.

Attention

Tokens can grant access, so they should not be exposed in public code or logs.

Exemple

Authorization: Bearer <token>

Exemple de demande

Check whether this token is being exposed to the browser.

Sécurité navigateur

TLS certificate

TLS certificate

Let's Encrypt certificate

Sens

A certificate used by HTTPS to prove a site's identity and encrypt traffic.

Quand l'utiliser

Use it when serving a production site over HTTPS.

Exemple

Let's Encrypt certificate

Exemple de demande

Explain why this browser says the certificate is invalid.

Développement local

Local network

Local network

Laptop and phone on the same Wi-Fi

Sens

A private network where nearby devices can communicate, such as the same Wi-Fi.

Quand l'utiliser

Use it when testing a local dev server from a phone or tablet.

Exemple

Laptop and phone on the same Wi-Fi

Exemple de demande

Explain whether these devices are on the same local network.

Développement local

LAN IP

LAN IP

192.168.1.25

Sens

An IP address used inside a local network.

Quand l'utiliser

Use it from another device on the same network to reach your development machine.

Exemple

192.168.1.25

Exemple de demande

Tell me the difference between localhost and a LAN IP.

Développement local

Network URL

Network URL

http://192.168.1.25:3000

Sens

A URL that another device on the same network can use to reach a local server.

Quand l'utiliser

Use it when testing a responsive page on a phone or tablet.

Attention

The dev server may also need to listen on 0.0.0.0 and allow the origin.

Exemple

http://192.168.1.25:3000

Exemple de demande

Explain how to open this dev server from a phone.

Développement local

Dev server

Dev server

npm run dev

Sens

A local server used while developing and testing an app.

Quand l'utiliser

Use it for fast reloads, local previews, and debugging before production build.

Exemple

npm run dev

Exemple de demande

Explain which local URL and network URL this dev server exposes.

Développement local

HMR

HMR

/_next/webpack-hmr

Sens

A development feature that updates the browser when code changes.

Quand l'utiliser

Use it to keep the browser state while editing UI code.

Exemple

/_next/webpack-hmr

Exemple de demande

Explain whether this blocked request is related to HMR.

Serveur et Docker

Proxy

Proxy

Browser -> proxy -> API

Sens

A server that sends requests on behalf of a client.

Quand l'utiliser

Use it to route requests, hide backend details, or avoid direct browser-to-API calls in development.

Exemple

Browser -> proxy -> API

Exemple de demande

Explain whether this API request goes through a proxy.

Serveur et Docker

Reverse proxy

Reverse proxy

Nginx -> app:3000

Sens

A server that receives public traffic and forwards it to internal services.

Quand l'utiliser

Use it for HTTPS termination, routing, compression, caching, and forwarding to app servers.

Exemple

Nginx -> app:3000

Exemple de demande

Explain how this reverse proxy routes traffic to the app.

Serveur et Docker

Docker port mapping

Docker port mapping

3000:3000

Sens

A mapping from a host port to a container port.

Quand l'utiliser

Use it so a browser on the host can reach a web app running inside a container.

Attention

In Docker ports, the left side is the host port and the right side is the container port.

Exemple

3000:3000

Exemple de demande

Explain the browser URL for this Docker port mapping.

Serveur et Docker

host.docker.internal

host.docker.internal

http://host.docker.internal:3000

Sens

A special hostname containers can use to reach the host machine in many Docker Desktop setups.

Quand l'utiliser

Use it when a container must call a service running on the host machine.

Exemple

http://host.docker.internal:3000

Exemple de demande

Explain whether this container should use host.docker.internal.

Serveur et Docker

Service name

Service name

postgres://db:5432/app

Sens

In Docker Compose, services can often reach each other by service name.

Quand l'utiliser

Use db, api, redis, or other compose service names instead of localhost between containers.

Exemple

postgres://db:5432/app

Exemple de demande

Explain why this container should use the db service name instead of localhost.

Serveur et Docker

Load balancer

Load balancer

Client -> load balancer -> app servers

Sens

A system that distributes incoming traffic across multiple servers.

Quand l'utiliser

Use it when one app has multiple running instances for scale or reliability.

Exemple

Client -> load balancer -> app servers

Exemple de demande

Explain where a load balancer fits in this deployment.

Serveur et Docker

CDN

CDN

Static assets served from an edge cache

Sens

A distributed network that serves content from locations closer to users.

Quand l'utiliser

Use it to speed up static assets, images, scripts, styles, and cached pages.

Exemple

Static assets served from an edge cache

Exemple de demande

Explain whether this static site benefits from a CDN.

Serveur et Docker

Cache

Cache

Cache-Control: max-age=3600

Sens

Saved data or responses reused to make future requests faster.

Quand l'utiliser

Use cache for static files, API responses, pages, and CDN edge content.

Attention

Old cached content can make a fixed bug appear unfixed.

Exemple

Cache-Control: max-age=3600

Exemple de demande

Explain whether this issue could be caused by cache.