Sign inSign up

thangnhh/http-echo

By thangnhh

•Updated about 1 year ago

Returns the requester IP, server hostname, server IP and CIDR, and the headers sent to the backend

Image
Networking
0

143

thangnhh/http-echo repository overview

⁠🐳 Request Info Service

A lightweight containerized service that returns useful request and server details.
Perfect for debugging reverse proxies, load balancers, API gateways, and network setups.

ā šŸ“Œ Features

  • āœ… Returns Requester IP
  • āœ… Displays Server Hostname
  • āœ… Shows Server IP & CIDR
  • āœ… Echoes Request Headers sent to backend
  • āœ… Specify a custom port, example: -e PORT=8889

ā šŸš€ Usage

docker pull thangnhh/http-echo:latest
docker run -d -p 80:80 thangnhh/http-echo:latest
or
docker run -d -p 80:8889 -e PORT=8889 thangnhh/http-echo:latest

Then visit:

http://your_addr:80

šŸ“– Example Response

Http Echo
Hostname: ip-10-0-206-172.us-west-2.compute.internal
Server address: 10.0.206.172:80
Server cidr: 10.0.206.172/18
Client address: 14.232.97.7

Headers:
{
  "x-forwarded-for": "14.232.97.7",
  "x-forwarded-proto": "http",
  "x-forwarded-port": "80",
  "host": "cdktes-farga-qm3exeudzr3y-1312059261.us-west-2.elb.amazonaws.com",
  "x-amzn-trace-id": "Root=1-68a2d320-5a0046a56c097ce664d3ca38",
  "pragma": "no-cache",
  "cache-control": "no-cache",
  "upgrade-insecure-requests": "1",
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36",
  "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
  "accept-encoding": "gzip, deflate",
  "accept-language": "en,vi;q=0.9"
}

Tag summary

Content type

Image

Digest

sha256:a8921ff56…

Size

45.1 MB

Last updated

about 1 year ago

docker pull thangnhh/http-echo