GithubHelp home page GithubHelp logo

pombredanne / iplog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magopian/iplog

0.0 1.0 0.0 132 KB

Log your IP address

License: BSD 3-Clause "New" or "Revised" License

Python 72.05% HTML 27.95%

iplog's Introduction

IP Log

Small Flask website that displays the current IP address.

This IP address can be stored if the store parameter is present in the url.

An optional note parameter can also be provided, whic could be used to store the local IP address.

Usage

Help out a friend

Need to connect to a remote desktop to help a friend? Just provide him the link to your IP log install, and ask him to click on the "store" link and provide a small note for you to quickly find which IP it is.

Where's my Raspberry-pi?

By default, the Raspbian image has the network configured to grab an IP address using the DHCP. This means that when you start your RPi, it could have just any IP address.

To know which IP address it has, it could use the IP Log site to specify its local IP address (using the note parameter).

Here's how to do it in your shell:

curl "http://some.site.com/?store=true&note=`ifconfig|xargs|awk '{print $7}'|sed -e 's/[a-z]*:/''/'`"

There's a simpler solution that seems to work well on a Raspberry-pi:

curl "http://some.site.com/?store=true&note=`hostname -I`"

Add one of those two lines to the /etc/rc.local script, that is launched on each boot.

For more information and other tips regarding the Raspberry-Pi, check https://gist.github.com/magopian/7854957.

iplog's People

Contributors

magopian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.