Popular recipes tagged "ip"http://code.activestate.com/recipes/tags/ip/2016-07-07T17:52:15-07:00ActiveState Code RecipesMultiple host/ip DNS resolution - mass_nslookup.pl (Perl)
2014-07-31T17:11:03-07:00Brett Carrollhttp://code.activestate.com/recipes/users/4174322/http://code.activestate.com/recipes/578915-multiple-hostip-dns-resolution-mass_nslookuppl/
<p style="color: grey">
Perl
recipe 578915
by <a href="/recipes/users/4174322/">Brett Carroll</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/digg/">digg</a>, <a href="/recipes/tags/dns/">dns</a>, <a href="/recipes/tags/hostname/">hostname</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/nslookup/">nslookup</a>, <a href="/recipes/tags/perl/">perl</a>).
</p>
<p>Parse a text file containing a list of IP Addresses or hostnames (one per line) and print out the corresponding IP Address or hostname resolved by DNS.</p>
mac address from ip address (Python)
2013-07-07T17:34:06-07:00judyhttp://code.activestate.com/recipes/users/4186659/http://code.activestate.com/recipes/578593-mac-address-from-ip-address/
<p style="color: grey">
Python
recipe 578593
by <a href="/recipes/users/4186659/">judy</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/adress/">adress</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/mac/">mac</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>get the mac address from ip address
work only in linux system</p>
IP Address (Python)
2012-07-02T22:34:13-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578182-ip-address/
<p style="color: grey">
Python
recipe 578182
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/archive/">archive</a>, <a href="/recipes/tags/cgi/">cgi</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/old/">old</a>).
</p>
<p>The following was a CGI experiment for finding out the IP address of a connecting client. This is committed for archival to be run under Python 2.5 or later versions.</p>
Get user's IP address even when they're behind a proxy (Python)
2011-07-15T21:19:17-07:00Ben Hoythttp://code.activestate.com/recipes/users/4170919/http://code.activestate.com/recipes/577795-get-users-ip-address-even-when-theyre-behind-a-pro/
<p style="color: grey">
Python
recipe 577795
by <a href="/recipes/users/4170919/">Ben Hoyt</a>
(<a href="/recipes/tags/address/">address</a>, <a href="/recipes/tags/cgi/">cgi</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/web/">web</a>, <a href="/recipes/tags/webpy/">webpy</a>).
</p>
<p>Function to get the user's IP address in a web app or CGI script, even when they're behind a web proxy.</p>
<p>We use web.py as our web framework, but change web.ctx.env and web.ctx.get('ip') to whatever the equivalents are for the CGI environment variables and REMOTE_ADDR are in your framework.</p>
IP and MAC addresses (Python)
2016-07-07T17:52:15-07:00Jean Brouwershttp://code.activestate.com/recipes/users/2984142/http://code.activestate.com/recipes/577191-ip-and-mac-addresses/
<p style="color: grey">
Python
recipe 577191
by <a href="/recipes/users/2984142/">Jean Brouwers</a>
(<a href="/recipes/tags/ios/">ios</a>, <a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/ipv4/">ipv4</a>, <a href="/recipes/tags/mac/">mac</a>, <a href="/recipes/tags/macos/">macos</a>, <a href="/recipes/tags/network/">network</a>, <a href="/recipes/tags/python2_4/">python2_4</a>, <a href="/recipes/tags/python3_5/">python3_5</a>, <a href="/recipes/tags/uuid/">uuid</a>, <a href="/recipes/tags/windows/">windows</a>).
Revision 3.
</p>
<p>This module collects all IP and MAC addresses from several available sources on the underlying system. See the module documentation for more details, supported Python releases and platforms.</p>
Convert Subnetmask from CIDR notation to dot.decimal form (Python)
2008-09-03T02:11:01-07:00gerontosepphttp://code.activestate.com/recipes/users/4166887/http://code.activestate.com/recipes/576483-convert-subnetmask-from-cidr-notation-to-dotdecima/
<p style="color: grey">
Python
recipe 576483
by <a href="/recipes/users/4166887/">gerontosepp</a>
(<a href="/recipes/tags/ip/">ip</a>, <a href="/recipes/tags/subnetmask/">subnetmask</a>, <a href="/recipes/tags/tcp/">tcp</a>).
Revision 2.
</p>
<p>How to convert the CIDR notation (192.168.0.0/24) of a subnetmask to the dotted decimal form (255.255.255.0).</p>