olivierb2 / gitso

Automatically exported from code.google.com/p/gitso
0 stars 0 forks source link

Display your IP address when you try to give support. #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would be great if I don't have to go to "WhatIsMyIp,com" every time :-). It can 
be easily automated so here is how...

Use case:
1. Click "Give Support"
2. A dialog would pop-up telling my Internet IP address.
3. I tell the address to the person needing support.

Please provide any additional information below.

You can gather yout Internet IP address with the following command on Linux:

wget -O - -q icanhazip.com

Original issue reported on code.google.com by agustin....@gmail.com on 9 Jan 2011 at 10:54

GoogleCodeExporter commented 8 years ago

Original comment by gerbe...@gmail.com on 9 Jan 2011 at 11:04

GoogleCodeExporter commented 8 years ago
This is an "improvement request" rather than a "defect".

Original comment by agustin....@gmail.com on 10 Jan 2011 at 5:26

GoogleCodeExporter commented 8 years ago

Original comment by gerbe...@gmail.com on 10 Jan 2011 at 5:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Actual python code:

import urllib
urllib.urlopen('http://icanhazip.com').read().strip()
--> '89.10x.1x8.xxx'
(x's replaced for privacy :-)

Provides your IP in a string. strip() removes some extra space that comes with 
it.

... That will provide your external IP address if you are behind a router, as 
provided by icanhazip.com.

Patch attached to include it in the status line...

Original comment by agustin....@gmail.com on 11 Jan 2011 at 7:45

Attachments:

GoogleCodeExporter commented 8 years ago
Merge #71 and #60

Original comment by herr.bi...@gmail.com on 30 Sep 2012 at 9:17