<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/networking</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 19:45:37 GMT</pubDate>
<item>
<title>(DOS Batch) Find All DC`s - Abiotic</title>
<link>http://snipplr.com/view/69454/find-all-dcs/</link>
<description><![CDATA[ <p>-o is omit.</p> ]]></description>
<pubDate>Mon, 14 Jan 2013 12:24:27 GMT</pubDate>
<guid>http://snipplr.com/view/69454/find-all-dcs/</guid>
</item>
<item>
<title>(DOS Batch) Show all Hosts Registered on Domain Controller - Abiotic</title>
<link>http://snipplr.com/view/69451/show-all-hosts-registered-on-domain-controller/</link>
<description><![CDATA[ <p>Show all hosts registered on domain controllker (CMD)</p> ]]></description>
<pubDate>Mon, 14 Jan 2013 11:14:36 GMT</pubDate>
<guid>http://snipplr.com/view/69451/show-all-hosts-registered-on-domain-controller/</guid>
</item>
<item>
<title>(C#) Get the MAC (Physical) address from a device at the specified IP address - pckujawa</title>
<link>http://snipplr.com/view/54687/get-the-mac-physical-address-from-a-device-at-the-specified-ip-address/</link>
<description><![CDATA[ <p>This is about the simplest way I've found. See [this](http://stackoverflow.com/questions/1092463/getting-the-mac-address-of-the-remote-host) and [this](http://stackoverflow.com/questions/1092379/want-to-get-mac-address-of-remote-pc/1092392#1092392) at StackOverflow for more info.</p> ]]></description>
<pubDate>Wed, 01 Jun 2011 08:50:09 GMT</pubDate>
<guid>http://snipplr.com/view/54687/get-the-mac-physical-address-from-a-device-at-the-specified-ip-address/</guid>
</item>
<item>
<title>(Bash) Getting the ip address of an interface on linux - laforge</title>
<link>http://snipplr.com/view/42219/getting-the-ip-address-of-an-interface-on-linux/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 14 Oct 2010 03:55:56 GMT</pubDate>
<guid>http://snipplr.com/view/42219/getting-the-ip-address-of-an-interface-on-linux/</guid>
</item>
<item>
<title>(C#) Listening for and receiving UDP packets on a particular local IP and port - pckujawa</title>
<link>http://snipplr.com/view/28245/listening-for-and-receiving-udp-packets-on-a-particular-local-ip-and-port/</link>
<description><![CDATA[ <p>For some reason, the only .NET way to listen for UDP packets seems to be the Bind and Receive(Async) methods of the Socket class. The Listen method won't work with UDP in my tests.

As for releasing the Socket correctly, [this forum post](http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/d54bf574-aa1a-4796-9b21-c9b91607b0fe) explains that you must call Socket.Shutdown instead of Socket.Close (it also says to call Socket.Disconnect(true), but I get exceptions when I do that). If you want to reuse the local endpoint (IP and port), then do Socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);

While debugging Socket issues, it's helpful to have a command-line open and use the netstat tool (e.g. "netstat -a -p UDP" to show all UDP sockets on all local interfaces).</p> ]]></description>
<pubDate>Fri, 12 Feb 2010 11:02:25 GMT</pubDate>
<guid>http://snipplr.com/view/28245/listening-for-and-receiving-udp-packets-on-a-particular-local-ip-and-port/</guid>
</item>
<item>
<title>(Bash) Commandline oneliner to get your public IP adress - berkes</title>
<link>http://snipplr.com/view/27675/commandline-oneliner-to-get-your-public-ip-adress/</link>
<description><![CDATA[ <p>Use wget and sed to get your public IP adress (instead of firing up firefox and visting whatismyip.com). Usefull in scripts where you need your public IP adres.

There are probably better ways, maybe even a GNUtool that I missed?</p> ]]></description>
<pubDate>Thu, 04 Feb 2010 05:58:52 GMT</pubDate>
<guid>http://snipplr.com/view/27675/commandline-oneliner-to-get-your-public-ip-adress/</guid>
</item>
<item>
<title>(Bash) list ARP table (Mac OS X) - obi</title>
<link>http://snipplr.com/view/17461/list-arp-table-mac-os-x/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 25 Jul 2009 12:17:16 GMT</pubDate>
<guid>http://snipplr.com/view/17461/list-arp-table-mac-os-x/</guid>
</item>
<item>
<title>(Bash) Fush DNS Cache In Mac OSX Leopard - rastersize</title>
<link>http://snipplr.com/view/9035/fush-dns-cache-in-mac-osx-leopard/</link>
<description><![CDATA[ <p>`lookupd` doens't exist in Leopard, instead `dscacheutil` should be used.</p> ]]></description>
<pubDate>Wed, 15 Oct 2008 13:27:06 GMT</pubDate>
<guid>http://snipplr.com/view/9035/fush-dns-cache-in-mac-osx-leopard/</guid>
</item>
<item>
<title>(Bash) Flush dns cache os x - therobot</title>
<link>http://snipplr.com/view/9026/flush-dns-cache-os-x/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 15 Oct 2008 06:15:37 GMT</pubDate>
<guid>http://snipplr.com/view/9026/flush-dns-cache-os-x/</guid>
</item>
<item>
<title>(Bash) Summarize TCP socket states (using netstat) - scarfboy</title>
<link>http://snipplr.com/view/7832/summarize-tcp-socket-states-using-netstat/</link>
<description><![CDATA[ <p>Filters for tcp and tcp6 lines, so omits udp and unix sockets.

Information is gathered from /proc; this uses netstat mainly to format it.

Gives output like:     21 tcp LISTEN
     12 tcp ESTABLISHED
      7 tcp6 LISTEN
      1 tcp TIME_WAIT</p> ]]></description>
<pubDate>Tue, 12 Aug 2008 10:08:34 GMT</pubDate>
<guid>http://snipplr.com/view/7832/summarize-tcp-socket-states-using-netstat/</guid>
</item>
<item>
<title>(Bash) Parallels bridged networking with Ubuntu Server - cczona</title>
<link>http://snipplr.com/view/5689/parallels-bridged-networking-with-ubuntu-server/</link>
<description><![CDATA[ <p>If Ubuntu Server fails to resolve hostnames or find a network connection via Parallels 3 bridged networking, it may be attempting to use the wrong network interface.</p> ]]></description>
<pubDate>Thu, 03 Apr 2008 17:51:29 GMT</pubDate>
<guid>http://snipplr.com/view/5689/parallels-bridged-networking-with-ubuntu-server/</guid>
</item>
<item>
<title>(Python) Zeroconf and Python - yarvin</title>
<link>http://snipplr.com/view/4751/zeroconf-and-python/</link>
<description><![CDATA[ <p>taken from http://www.amk.ca/python/zeroconf</p> ]]></description>
<pubDate>Wed, 23 Jan 2008 16:02:52 GMT</pubDate>
<guid>http://snipplr.com/view/4751/zeroconf-and-python/</guid>
</item>
<item>
<title>(Bash) Get the IP exposed to the internet - iblis</title>
<link>http://snipplr.com/view/4464/get-the-ip-exposed-to-the-internet/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 06 Jan 2008 13:35:14 GMT</pubDate>
<guid>http://snipplr.com/view/4464/get-the-ip-exposed-to-the-internet/</guid>
</item>
<item>
<title>(Bash) Change MAC address (gnu/linux) - yuconner</title>
<link>http://snipplr.com/view/3777/change-mac-address-gnulinux/</link>
<description><![CDATA[ <p>replace ethX with the correct interface (eth1, eth2, etc)</p> ]]></description>
<pubDate>Mon, 24 Sep 2007 15:44:01 GMT</pubDate>
<guid>http://snipplr.com/view/3777/change-mac-address-gnulinux/</guid>
</item>
<item>
<title>(Python) Georgia Tech LAWN login script - scyclops</title>
<link>http://snipplr.com/view/3587/georgia-tech-lawn-login-script/</link>
<description><![CDATA[ <p>A quick and simple script to allow people to log onto the Georgia Tech wireless network without opening a browser.  Pass your login details on the command line or enter them once you run the script.

Sources:
- http://www.lawn.gatech.edu/help/command_line.html</p> ]]></description>
<pubDate>Tue, 28 Aug 2007 15:44:54 GMT</pubDate>
<guid>http://snipplr.com/view/3587/georgia-tech-lawn-login-script/</guid>
</item>
<item>
<title>(Python) Live Packet Capture in Python with pcapy - scyclops</title>
<link>http://snipplr.com/view/3579/live-packet-capture-in-python-with-pcapy/</link>
<description><![CDATA[ <p>Tried using pypcap but it didn't seem to do anything and I am too lazy to compile python-libpcap.

Requires:
- pcapy python module (http://oss.coresecurity.com/projects/pcapy.html)
- impacket python module (http://oss.coresecurity.com/projects/impacket.html)
- pcap library, for Windows use WinPCap (http://www.winpcap.org/)

Sources:
- http://oss.coresecurity.com/pcapy/doc/pt01.html
- http://www.thescripts.com/forum/post2740081-5.html</p> ]]></description>
<pubDate>Mon, 27 Aug 2007 10:48:06 GMT</pubDate>
<guid>http://snipplr.com/view/3579/live-packet-capture-in-python-with-pcapy/</guid>
</item>
<item>
<title>(Bash) How to set a static IP in Ubuntu from the shell - huckeduster</title>
<link>http://snipplr.com/view/1737/how-to-set-a-static-ip-in-ubuntu-from-the-shell/</link>
<description><![CDATA[ <p>Seen here: http://textsnippets.com/posts/show/319</p> ]]></description>
<pubDate>Tue, 28 Nov 2006 02:47:57 GMT</pubDate>
<guid>http://snipplr.com/view/1737/how-to-set-a-static-ip-in-ubuntu-from-the-shell/</guid>
</item>
<item>
<title>(Python) Python - get Interface ethernet - whitetiger</title>
<link>http://snipplr.com/view/1631/python--get-interface-ethernet/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:42 GMT</pubDate>
<guid>http://snipplr.com/view/1631/python--get-interface-ethernet/</guid>
</item>
</channel>
</rss>