https://github.com/proprietary/ip
tool for self-hosting a "What is my IP?" server, supporting both IPv4 and IPv6, written in C++
https://github.com/proprietary/ip
cpp epoll linux networking tcp-server
Last synced: 2 months ago
JSON representation
tool for self-hosting a "What is my IP?" server, supporting both IPv4 and IPv6, written in C++
- Host: GitHub
- URL: https://github.com/proprietary/ip
- Owner: proprietary
- License: apache-2.0
- Created: 2023-11-04T08:15:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-04T10:26:23.000Z (over 2 years ago)
- Last Synced: 2025-07-01T08:42:27.973Z (12 months ago)
- Topics: cpp, epoll, linux, networking, tcp-server
- Language: C++
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# a "What is my IP?" server
Linux only because this uses `epoll(7)`
## Building
```bash
bazel //:ip
./bazel-bin/ip --port=50888
```
## Example usage
```bash
# get my IPv6
curl -6 :50888
# get my IPv4
curl -4 :50888
```
## License
Apache-2.0