Sign inSign up

joaoppcastelo/myipslackbot

By joaoppcastelo

•Updated almost 5 years ago

Slack bot that shares your public IP to a Slack channel.

Image
0

177

joaoppcastelo/myipslackbot repository overview

Docker Image CI

⁠Introduction

Slack Bot to share the public IP of the device running the Docker container with this image to a Slack channel of your choice. You can use this image if, for example, you have an application running on a personal device and you'd like to access it from the outside world. To access it, you could obtain a domain, like www.mydomain.com⁠, use a tool like NoIp.com, or use the public IP provided by your ISP. With this last option, you would just need to know the public IP given by your ISP and open the ports on your router to redirect all the traffic to a specific port to the device you want.

This image also detects if the device lost his connection to the internet, sending the IP address to Slack when it gets back online.

The Slack notification received contain the following text:

New IP assigned for HOSTNAME: 123.456.789.0

⁠Environment variables

To make this image work, you'll need to provide some info through environment variables. Bellow you can find the env. variables available.

⁠Source code

You can check the source code on my GitHub, check an example on how to use this image with a docker-compose.yml, suggest or report and idea or a bug, or even adding your own features.

https://github.com/JoaoPPCastelo/MyIpSlackBot⁠

Tag summary

Content type

Image

Digest

Size

10.8 MB

Last updated

almost 5 years ago

docker pull joaoppcastelo/myipslackbot:v1.1