Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Where is this IP address, IPv4 and IPv6

Do you want to know where in the world an IP address comes from? I often do and I've used a number of tools - but they tend to draw me fancy maps and lead me away from my page. So this morning I put together a cheap and cheerful "which country is this IP from?" script, using Maxmind Open Source Technology which just produces a little popup. Oh - and if you cut and paste an IP address with leading and / or trailing spaces into it, it actually works too.

Ask about ip: 

Have a play with it - it's IP6 aware too, so you can put in things like ::ffff:dc05:ca4b and find out what THAT means too!

I have coded in many (most?) of the special cases ... if you try IP addresses like ::1 or like you should get sensible results - but please do let me know if you find anything that's not covered in IP terms. The Maxmind database is pretty darned good, but it is NOT guaranteed to get every IP address right, so if you put in your own IP address, seated in Bristol, and get told you're in France ... then chances are that you're using the connection of a French company and your packets hit the internet in Toulouse!

There's a permanent link to this utility on our front page which I invite you to bookmark and use. And you may wonder what the "distance" indicator is that sometimes comes up on your results. It's a very rough guess at the distance (in miles) that the IP address given is from our training centre, because I would love you to be remember our training courses ... we'll teach you how to write little toys like this one on our PHP techniques workshop, for example.

And for the more technical ...

IPv6 cases considered:

Full IP6 e.g. 65e1:763d:6652:1342:0725:4c65:1424
Shortened IP6 e.g. ::1a72:189 and 1234::17a3:712
IP4 mapped current e.g. ::ffff:64ed:54
IP4 mapped obsolete e.g. ::8c4b:430a
Teredo Tunneling: e.g. 2001:0::154a:19:a4
ORCHID: e.g. 2001:0013:64ec::879a:0:15
Documentation e.g. 2001:0db8:1342:0725::1a:74a0
Multicast e.g. ff75:7762::
Local, Managed e.g. fc05:8854:87::65
Local, Random e.g. fd76:638d:c737:83ab:552c:6509:65ab:817
Site-local (deprecated) e.g. fed5:7764:9a77::
Link-local e.g. feab:17:18:e745::65a
Unconfigured i.e. ::0
Loopback i.e. ::1

IPv4 cases considered:

Full IP4 address e.g.
Automatic private addresses e.g.
Local class A addresses e.g.
Local class B addresses e.g.
Local class C addresses e.g.
The local class C network we use e.g.
Loopback e.g.
Class D (multicast) e.g.
Class E (experimental) e.g.

And (though it's a bit of an aside), here's the Javascript and form that I've used on this page for the popup:

<script type="text/javascript">
function popUp(myURL) {
day = new Date(); id = day.getTime();
window.open('', id, 'height=308,width=250,scrollbars=1,
myURL.target=id; return true; } </script>
<form method=GET action="/resources/iptool.html"
onSubmit="popUp(this)"> Ask about ip: <input name=ip
size=31 value=""><input type=submit value=go!>

(written 2009-01-04)

Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
Q777 - Object Orientation and General technical topics - Technology Overviews
  [1513] Perl, PHP or Python? No - Perl AND PHP AND Python! - (2008-01-20)
  [2607] Answers on Ruby on Rails - (2010-01-30)
  [2971] Should the public sector compete with businesses? and other deep questions - (2010-09-26)

J808 - Java - Network Programming
  [2863] Writing a server in Java - (2010-07-09)
  [4420] Flexibility in input - read from file, web resource or keyboard - (2015-02-08)

Back to
Well House Manor Hotel - on plan for 2009 business guests
Previous and next
Horse's mouth home
Forward to
Going round the block
Some other Articles
Looking forward, in Melksham, in 2009
From spam to mod_alias - finding resources
Going round the block
Where is this IP address, IPv4 and IPv6
Well House Manor Hotel - on plan for 2009 business guests
Moving a directory on your web site
Required Request
Pettifog and forum boards away from public view
Telling Google which country your business trades in
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page

This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/1976_Whe ... -IPv6.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb