This is a simple Python Flask web server that listens on port 8087, retrieves the server's IP address from an external API, and fetches the hostname using the socket
module. It's containerized using Docker and can be run using Docker commands or Docker Compose.
🐳 Docker should be installed on your machine.
-
Clone or download this repository.
-
Navigate to the project directory.
-
Run using Docker Compose
git clone https://github.com/Raz-Dahan/ipify-webserver.git cd ipify-webserver docker-compose up -d
-
Access the server
- Open a web browser and go to
http://<your_server_ip>:8087/
- Open a web browser and go to
- Feel free to customize the solution and explore more about Flask, Docker, and web server development.