A TCP server written in Go that returns the client's IP address and country. It supports various response modes, including TCP plain text, HTTP plain text, HTTP JSON and animation!.
MIT License
Bot releases are hidden (Show)
change http version 1.1 to 1.0
Published by onionj 4 months ago
Full Changelog: https://github.com/onionj/ip/compare/v1.9.0...v1.9.1
Published by onionj 5 months ago
Full Changelog: https://github.com/onionj/ip/compare/v1.8.3...v1.9.0
Published by onionj 5 months ago
Full Changelog: https://github.com/onionj/ip/compare/v1.8.1...v1.8.3
Published by onionj 7 months ago
Full Changelog: https://github.com/onionj/ip/compare/v1.8.1...v1.8.2
Published by onionj 7 months ago
Full Changelog: https://github.com/onionj/ip/compare/v1.8.0...v1.8.1
Published by onionj 8 months ago
Full Changelog: https://github.com/onionj/ip/compare/v1.7.0...v1.8.0
Published by onionj 9 months ago
feat: Optional IP geolocation service (Change runner command)
feat: add a Test
fix: liter Plane animation
475acbf7e6059a26cf322d6ce188f876122bd94f60fa5f03a9c84fe4f0c9a24c yourip-darwin-amd64
899e2cc655bde851f62c05eff202a12d8af924be7f089d1171336176ce4e3071 yourip-darwin-arm64
f8742012077a5cd1f38d23caec5bd93a1840e76d826d4fd785630d62b3c6915d yourip-linux-amd64
45a9ba15164fa968ea551440e0c319afcde88ccf3d836cc4c0ce8f8737cf0b7d yourip-linux-arm64
2200a32b460647a589c893b7bb0dbbee45f720c32fc676b71df87aea03fd773e yourip-openbsd-amd64
e2acb76140bdca1f92d6be1a310dc7cc3759cff458aa9d6df5eb0e63bd37e3e6 yourip-windows-amd64.exe
Published by onionj 9 months ago
⚡ improve ip geolocation Query
5fd51a0b1afe8298a6c8cbbe1f3a2804111edff96188b70691150aa028e6826d yourip-darwin-amd64
b946c30c7c56d0555bb3c4848872cea05eb616a39724f6d85218c5a45a5cfc55 yourip-darwin-arm64
334becb9ca4e511184e200f20910b96ae6c9453ac1d5c831409c924db2d6fec4 yourip-linux-amd64
fbd8649794dd21a7d2983cf027c253b7b0fa237249431e433b7f02299f24c3df yourip-linux-arm64
1aa64f71e06c1cd3698cb9063a8b02c1c9df06575678bce0cff472a71a2bfbf5 yourip-openbsd-amd64
5449788778fbee73318e8d4995d9d887647e2d517f04fced284e9223548827ce yourip-windows-amd64.exe
Published by onionj 9 months ago
Published by onionj 10 months ago
fix: saving cache file
Published by onionj 10 months ago
test it http://yourip.top
Published by onionj 10 months ago
Test it: http://yourip.top:8080/json
Published by onionj 10 months ago
fix dead connections issue
Published by onionj 10 months ago
echo -e "1" | nc yourip.top 80
(Banner)echo -e "2" | nc yourip.top 80
(Flight) (new)Published by onionj 10 months ago
supports various response modes, including TCP plain text, HTTP plain text, HTTP JSON and TCP ASCII Animation!
Plain Text: Suitable for pure TCP connections like NetCat.
echo -e "" | nc yourip.top 80
HTTP Text: Designed for browsers and curl
requests.
curl http://yourip.top
http://yourip.top
echo -e "GET /" | nc yourip.top 80
HTTP JSON: Designed for browsers and curl
requests.
curl http://yourip.top/json
http://yourip.top
echo -e "GET /json" | nc yourip.top 80
Animation: Suitable for pure TCP connections like NetCat.
echo -e "1" | nc yourip.top 80
Published by onionj about 1 year ago
Simple TCP server to return the client's IP address.
./yourip 'host:port'
Replace 'host:port'
with the desired host and port to listen on.
For example: ./yourip :80
go run main.go 'host:port'
Replace 'host:port'
with the desired host and port to listen on.
The server uses the net
package in Go to resolve the TCP address, start a listener, and accept incoming connections. It sets a deadline of one minute for each connection and responds with an HTTP 200 OK message containing the client's IP address.
This project is licensed under the MIT License.
3209fbbbf2c9d5b71bdc2c78f10c41f6023b04a6738b266b68fbe7fb65a53532 yourip-darwin-amd64
2b2bdd37cef8ce41398a2cfa52c6946fc1dd10ac92d4a2e984544ba171dd805a yourip-darwin-arm64
afb2a280a3dd796fe13fc310711bc35f6e824add93b110c1a53453a3bd32b00a yourip-linux-amd64
1a0b6d88aa250002378af0bd20e456e10f3f5969f1e65ac97c2100c98da9d162 yourip-linux-arm64
7bffe3cba4578a008539172c8228cf0cb0a14ed0051ee0666b4e110d28340ce6 yourip-openbsd-amd64
807594d8c69fe7eb25fe201fd79148570751b6be9e2742fbcd61d5ee48151833 yourip-windows-amd64.exe