Engineering Tools for AI

Программирование

Основные сетевые термины

Справочник по сетевым терминам для локальной разработки, браузерных запросов, API, Docker и деплоя.

42 терминов

Адреса и имена

IP address

IP address

192.168.1.25

Значение

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

Когда использовать

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

Пример

192.168.1.25

Пример запроса

Explain which IP address I should use from another device.

Адреса и имена

IPv4

IPv4

192.168.0.10

Значение

The common four-part IP address format.

Когда использовать

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

Пример

192.168.0.10

Пример запроса

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

Адреса и имена

IPv6

IPv6

::1

Значение

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

Когда использовать

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

Пример

::1

Пример запроса

Explain whether this log is using IPv4 or IPv6.

Адреса и имена

localhost

localhost

http://localhost:3000

Значение

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

Когда использовать

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

Осторожно

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

Пример

http://localhost:3000

Пример запроса

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

Адреса и имена

127.0.0.1

127.0.0.1

http://127.0.0.1:3000

Значение

The common IPv4 loopback address for the current machine.

Когда использовать

Use it as a numeric alternative to localhost.

Пример

http://127.0.0.1:3000

Пример запроса

Explain whether localhost and 127.0.0.1 are equivalent here.

Адреса и имена

0.0.0.0

0.0.0.0

next dev -H 0.0.0.0

Значение

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

Когда использовать

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

Осторожно

It can expose a development server more broadly than localhost.

Пример

next dev -H 0.0.0.0

Пример запроса

Explain whether this dev server should bind to 0.0.0.0.

Адреса и имена

Hostname

Hostname

my-laptop.local

Значение

A readable name for a device or server.

Когда использовать

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

Пример

my-laptop.local

Пример запроса

Explain whether this hostname resolves to the expected IP.

Адреса и имена

Domain

Domain

example.com

Значение

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

Когда использовать

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

Пример

example.com

Пример запроса

Explain what domain this deployed site should use.

Адреса и имена

DNS

DNS

example.com -> 93.184.216.34

Значение

The system that translates domain names into IP addresses.

Когда использовать

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

Пример

example.com -> 93.184.216.34

Пример запроса

Explain which DNS record is needed for this domain.

Порты и соединения

Port

Port

3000

Значение

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

Когда использовать

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

Пример

3000

Пример запроса

Tell me which port this server is using.

Порты и соединения

Listen

Listen

Ready on http://localhost:3000

Значение

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

Когда использовать

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

Пример

Ready on http://localhost:3000

Пример запроса

Explain where this server is listening.

Порты и соединения

Port forwarding

Port forwarding

8080 -> 3000

Значение

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

Когда использовать

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

Пример

8080 -> 3000

Пример запроса

Explain where this port is forwarded.

Порты и соединения

Firewall

Firewall

Allow incoming connections on port 3000

Значение

A rule system that allows or blocks network traffic.

Когда использовать

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

Пример

Allow incoming connections on port 3000

Пример запроса

Explain whether a firewall could block this local connection.

Web-запросы

URL

URL

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

Значение

The full address used to request a web resource.

Когда использовать

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

Пример

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

Пример запроса

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

Web-запросы

Path

Path

/ko/reference/docker

Значение

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

Когда использовать

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

Пример

/ko/reference/docker

Пример запроса

Tell me which app route this URL path maps to.

Web-запросы

Query string

Query string

?page=1&lang=ko

Значение

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

Когда использовать

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

Пример

?page=1&lang=ko

Пример запроса

Explain what query parameters this URL sends.

Web-запросы

HTTP

HTTP

http://localhost:3000

Значение

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

Когда использовать

Local development often uses HTTP before production HTTPS is configured.

Пример

http://localhost:3000

Пример запроса

Explain whether this local URL uses HTTP or HTTPS.

Web-запросы

HTTPS

HTTPS

https://example.com

Значение

HTTP protected by TLS encryption.

Когда использовать

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

Пример

https://example.com

Пример запроса

Explain whether this deployed site needs HTTPS.

Web-запросы

HTTP method

HTTP method

GET /api/tools

Значение

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

Когда использовать

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

Пример

GET /api/tools

Пример запроса

Explain which HTTP method this API request should use.

Web-запросы

Status code

Status code

200 OK / 404 Not Found / 500 Internal Server Error

Значение

A number that summarizes the result of an HTTP response.

Когда использовать

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

Пример

200 OK / 404 Not Found / 500 Internal Server Error

Пример запроса

Explain what this HTTP status code means.

Web-запросы

Header

Header

Content-Type: application/json

Значение

Metadata sent with an HTTP request or response.

Когда использовать

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

Пример

Content-Type: application/json

Пример запроса

Explain the important headers in this response.

Web-запросы

Body

Body

{"name":"demo"}

Значение

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

Когда использовать

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

Пример

{"name":"demo"}

Пример запроса

Explain what data this request body sends.

Безопасность браузера

Origin

Origin

http://192.168.1.25:3000

Значение

The combination of protocol, host, and port.

Когда использовать

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

Осторожно

Changing only the port creates a different origin.

Пример

http://192.168.1.25:3000

Пример запроса

Identify the origin of this URL.

Безопасность браузера

Same-origin policy

Same-origin policy

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

Значение

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

Когда использовать

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

Пример

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

Пример запроса

Explain whether this is a same-origin policy problem.

Безопасность браузера

CORS

CORS

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

Значение

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

Когда использовать

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

Осторожно

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

Пример

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

Пример запроса

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

Безопасность браузера

Cookie

Cookie

Set-Cookie: session=abc; HttpOnly

Значение

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

Когда использовать

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

Пример

Set-Cookie: session=abc; HttpOnly

Пример запроса

Explain whether this login state is stored in a cookie.

Безопасность браузера

Session

Session

session_id=abc123

Значение

A way to remember user state across multiple requests.

Когда использовать

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

Пример

session_id=abc123

Пример запроса

Explain how this app keeps the user session.

Безопасность браузера

Token

Token

Authorization: Bearer <token>

Значение

A string used to prove identity or permission.

Когда использовать

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

Осторожно

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

Пример

Authorization: Bearer <token>

Пример запроса

Check whether this token is being exposed to the browser.

Безопасность браузера

TLS certificate

TLS certificate

Let's Encrypt certificate

Значение

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

Когда использовать

Use it when serving a production site over HTTPS.

Пример

Let's Encrypt certificate

Пример запроса

Explain why this browser says the certificate is invalid.

Локальная разработка

Local network

Local network

Laptop and phone on the same Wi-Fi

Значение

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

Когда использовать

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

Пример

Laptop and phone on the same Wi-Fi

Пример запроса

Explain whether these devices are on the same local network.

Локальная разработка

LAN IP

LAN IP

192.168.1.25

Значение

An IP address used inside a local network.

Когда использовать

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

Пример

192.168.1.25

Пример запроса

Tell me the difference between localhost and a LAN IP.

Локальная разработка

Network URL

Network URL

http://192.168.1.25:3000

Значение

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

Когда использовать

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

Осторожно

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

Пример

http://192.168.1.25:3000

Пример запроса

Explain how to open this dev server from a phone.

Локальная разработка

Dev server

Dev server

npm run dev

Значение

A local server used while developing and testing an app.

Когда использовать

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

Пример

npm run dev

Пример запроса

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

Локальная разработка

HMR

HMR

/_next/webpack-hmr

Значение

A development feature that updates the browser when code changes.

Когда использовать

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

Пример

/_next/webpack-hmr

Пример запроса

Explain whether this blocked request is related to HMR.

Сервер и Docker

Proxy

Proxy

Browser -> proxy -> API

Значение

A server that sends requests on behalf of a client.

Когда использовать

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

Пример

Browser -> proxy -> API

Пример запроса

Explain whether this API request goes through a proxy.

Сервер и Docker

Reverse proxy

Reverse proxy

Nginx -> app:3000

Значение

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

Когда использовать

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

Пример

Nginx -> app:3000

Пример запроса

Explain how this reverse proxy routes traffic to the app.

Сервер и Docker

Docker port mapping

Docker port mapping

3000:3000

Значение

A mapping from a host port to a container port.

Когда использовать

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

Осторожно

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

Пример

3000:3000

Пример запроса

Explain the browser URL for this Docker port mapping.

Сервер и Docker

host.docker.internal

host.docker.internal

http://host.docker.internal:3000

Значение

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

Когда использовать

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

Пример

http://host.docker.internal:3000

Пример запроса

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

Сервер и Docker

Service name

Service name

postgres://db:5432/app

Значение

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

Когда использовать

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

Пример

postgres://db:5432/app

Пример запроса

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

Сервер и Docker

Load balancer

Load balancer

Client -> load balancer -> app servers

Значение

A system that distributes incoming traffic across multiple servers.

Когда использовать

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

Пример

Client -> load balancer -> app servers

Пример запроса

Explain where a load balancer fits in this deployment.

Сервер и Docker

CDN

CDN

Static assets served from an edge cache

Значение

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

Когда использовать

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

Пример

Static assets served from an edge cache

Пример запроса

Explain whether this static site benefits from a CDN.

Сервер и Docker

Cache

Cache

Cache-Control: max-age=3600

Значение

Saved data or responses reused to make future requests faster.

Когда использовать

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

Осторожно

Old cached content can make a fixed bug appear unfixed.

Пример

Cache-Control: max-age=3600

Пример запроса

Explain whether this issue could be caused by cache.