Checking for IPv6 in Python
Here's a random little tip: To check if your platform's Python interpreter was built with IPv6 support, run this program:
$ python
Python 2.4.4 (#1, Jan 10 2007, 01:25:01) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.has_ipv6
True
>>> ^D
Categories:
0 TrackBacks
Listed below are links to blogs that reference this entry: Checking for IPv6 in Python.
TrackBack URL for this entry: https://blogs.psu.edu/mt4/mt-tb.cgi/640
1 Comments
Leave a comment
Derek's IPv6 pages on del.icio.us
Tag Cloud
- 3rox
- 6to4
- airportexpress
- aix
- apple
- arin
- bgp
- blogging
- bugs
- c
- caida
- cellular
- cifs
- cisco
- class e
- content
- cosign
- dhcpv6
- dhcpv6,
- dns
- dnssec
- edu
- eu
- europe
- firewall
- freebsd
- fugu
- higher_ed
- ids
- ietf
- internet2
- ios
- iphone
- ipv4
- ipv4_address_exhaustion
- ipv6
- ipv6,
- java
- kanren
- kerberos
- ldap
- leopard
- movabletype
- nat
- netflix
- nfs
- nokia
- ntp
- ntt
- openldap
- opensolaris
- os x
- osx
- pct
- pear
- penncollege
- perl
- php
- ping
- pocketpc
- programming
- proxy
- psu
- python
- radmind
- reserved addresses
- ripe
- samba
- security
- smtp
- snort
- social_commentary
- solaris
- squid
- subethaedit
- tcpwrappers
- ucal
- v6policy
- verizon,
- vista
- wah
- webaccess
- webmail
- wimax
- windows
- windowsmobile
- wireless

python
Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.has_ipv6
True
>>> ^D
Yeah!