<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; tcp</title> <atom:link href="http://www.ghacks.net/tag/tcp/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 13:29:21 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>How To Calculate a TCP-IP Subnet Mask</title><link>http://www.ghacks.net/2011/09/03/how-to-calculate-a-tcp-ip-subnet-mask/</link> <comments>http://www.ghacks.net/2011/09/03/how-to-calculate-a-tcp-ip-subnet-mask/#comments</comments> <pubDate>Sat, 03 Sep 2011 07:42:58 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Networks]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[ip]]></category> <category><![CDATA[network address]]></category> <category><![CDATA[network administration]]></category> <category><![CDATA[subnet]]></category> <category><![CDATA[tcp]]></category> <category><![CDATA[tcp/ip]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=50039</guid> <description><![CDATA[If you’re a network administrator, chances are at some point you may need to set up a number of different networks on your IP range. In order to do this, you will need to know how to create different subnets. There are two main things to remember when trying to calculate subnets. The first is [...]]]></description> <content:encoded><![CDATA[<p>If you’re a network administrator, chances are at some point you may need to set up a number of different networks on your IP range. In order to do this, you will need to know how to create different subnets.</p><p>There are two main things to remember when trying to calculate subnets. The first is that that default subnet for a range is 255.255.255.0. This subnet, that we all recognize gives you one network with 255 different addresses from 1 to 255. Fairly easy stuff so far. The second thing to remember is the formula needed to calculate a new subnet. For this we have to go back to basics and remember that the number 255 is made up in binary of 8 bits. To get the number 255, all those 8 bits would be set to 1, each one representing a number in decimal in the following sequence. (1, 2, 4, 8, 16, 32, 64, 128). If you add all these numbers together you get 255.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/09/tcp-ip-subnet.gif" alt="tcp-ip-subnet" title="tcp-ip-subnet" width="403" height="162" class="alignnone size-full wp-image-50040" /></p><p>In order to create our subnet mask we need to “borrow” a certain number of bits from our host address. The host address is the last number in the group of four that makes up our subnet. So in the subnet 255.255.255.0, the 0 is the host address.</p><p>We can use the formula (2^n – 2) to figure out how many networks we can make by borrowing certain number of bits. Lets say for example we wanted to make six networks; we would need to borrow 3 bits, because (2^3 – 2 = 6). So we take the three bits from the left of our binary sequence and add them together. (128 + 64 + 32 = 224). So the subnet we need to use for our 6-network system is 255.255.255.224.</p><p>Now we’ve calculated our subnet, the next thing we need to do is work out the ranges of our new networks. This is a fairly easy thing to do if you remember one rule. The lowest number in the bits we borrowed from our host address is our guide. In this case, the bits we borrowed were 128, 64 and 32. The lowest of these is 32, so this is our guide number we’re going to use to set up our network ranges.</p><p>What you want to do is start off with your guide number, and that gives you the first address of our first network. For example &#8211; 192.168.0.32. To get the starting address of the second network, you just add on 32. So the second network will begin at 192.168.0.64. Keep adding the number 32 to find the other network starting points, and you’ll end up with this network address range map:</p><ul><li>Network 1: 192.168.0.32 – 192.168.0.63</li><li>Network 2: 192.168.0.64 – 192.168.0.95</li><li> Network 3: 192.168.0.96 – 192.168.0.127</li><li>Network 4: 192.168.0.128 – 192.168.0.159</li><li>Network 5: 192.168.0.160 – 192.168.0.191</li><li>Network 6: 192.168.0.192 – 192.168.0.223</li></ul><p>Note that you cannot use the first 32 or last 32 addresses of the entire 255 address range, (unless you’re using specific equipment that allows it). And there you have it, we’ve calculated our subnet mask, and we’ve worked out the ranges our networks will use. Remember the formula (2^n – 2) and your binary numbers, and you’ll be able to work out any configuration of subnets and networks.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/09/03/how-to-calculate-a-tcp-ip-subnet-mask/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>CloseTheDoor, Identify Local TCP, UDP Listening Ports</title><link>http://www.ghacks.net/2011/07/04/closethedoor-identify-local-tcp-udp-listening-ports/</link> <comments>http://www.ghacks.net/2011/07/04/closethedoor-identify-local-tcp-udp-listening-ports/#comments</comments> <pubDate>Mon, 04 Jul 2011 16:40:59 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[closethedoor]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[portable software]]></category> <category><![CDATA[ports]]></category> <category><![CDATA[processes]]></category> <category><![CDATA[tcp]]></category> <category><![CDATA[udp]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=47390</guid> <description><![CDATA[One of the things that I to regularly on all of my computer systems is to check each system&#8217;s open TCP and UDP ports. It is a security precaution to make sure that only needed ports are listening, and that all other ports are closed to reduce the chance of a successful attack. I have [...]]]></description> <content:encoded><![CDATA[<p>One of the things that I to regularly on all of my computer systems is to check each system&#8217;s open TCP and UDP ports. It is a security precaution to make sure that only needed ports are listening, and that all other ports are closed to reduce the chance of a successful attack. I have been using various programs for that task, the previously reviewed <a
href="http://www.ghacks.net/2010/08/03/currports-see-which-apps-connect-to-the-internet/">CurrPorts</a> by Nirsoft for instance. Today I&#8217;m going to review CloseTheDoor, another program that Windows users can use to identify local TCP and UDP listening ports.</p><p>The program is offered as a portable version and installer by its developers. Both versions offer the same functionality in all other aspects.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/07/closethedoor.png" alt="closethedoor" title="closethedoor" width="583" height="464" class="alignnone size-full wp-image-47393" /></p><p>The software displays all listening ports, their protocol, process, process ID, associated services and company in the interface. This makes it relatively easy to identify specific ports directly in the program interface.  Especially the associated services column can be helpful in identifying the responsible Windows services.</p><p>A right-click on a row opens a context menu with additional research options.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/07/lookup-port.png" alt="lookup port" title="lookup port" width="374" height="254" class="alignnone size-full wp-image-47395" /></p><ul><li>Locate the executable file &#8211; Opens the folder that contains the process executable.</li><li>Terminate this process &#8211; Terminates the process directly. May only be temporary if the process restarts automatically.</li><li>Process services &#8211; Displays all services that are linked to the process.</li><li>Google&#8230; &#8211; Research the port, process on Google.</li><li>Wikipedia&#8230; &#8211; Research the port, process on Wikipedia.</li><li>Usage statistics of this port &#8211; Look up statistics</li><li>Port authority database &#8211; Provides information about most ports.</li><li></li></ul><p>The menubar on top links to additional tools, commands and references. The tools menu links to Windows apps like the Services managements interface, the Task Manager, Registry Editor or Local Security Settings. Commands can run the netstat command to display all open connections, the task list and the system&#8217;s environment variables.</p><p>Internet references finally links to essays and white papers about ports and online security. Linked there are for instance BlackViper&#8217;s excellent website that is offering services configuration suggestions, lists of common port numbers or a Microsoft guide on how to configure a firewall for domains and trusts.</p><p>It is furthermore possible to display a short summary, and to export the current port list in detail. CloseTheDoor offers everything that one could hope for when analyzing open ports on a Windows machine. It is a solid alternative to CurrPorts. The software is compatible with all recent versions of the Microsoft Windows operating system. It tested fine on a 64-bit Windows 7 test system. Downloads of the portable version, installer and source code are <a
href="http://sourceforge.net/projects/closethedoor/">available at</a> the project website over at Sourceforge.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/07/04/closethedoor-identify-local-tcp-udp-listening-ports/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>Using netstat</title><link>http://www.ghacks.net/2010/04/20/using-netstat/</link> <comments>http://www.ghacks.net/2010/04/20/using-netstat/#comments</comments> <pubDate>Tue, 20 Apr 2010 11:10:16 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[command-line]]></category> <category><![CDATA[netstat]]></category> <category><![CDATA[network commands]]></category> <category><![CDATA[network information]]></category> <category><![CDATA[tcp]]></category> <category><![CDATA[udp]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24731</guid> <description><![CDATA[As promised (in my article &#8220;How do I find my network information in Linux?&#8220;) I am going to introduce you to the netstat command. This command is a very useful tool for discovering networking information such as routing tables, network connections, interface statistics, masquerade connections, and multicast memberships. But it&#8217;s not quite as simple to [...]]]></description> <content:encoded><![CDATA[<p>As promised (in my article &#8220;<a
title="How do I find my network information in Linux?" href="http://www.ghacks.net/2010/04/20/using-netstat/" target="_blank">How do I find my network information in Linux?</a>&#8220;) I am going to introduce you to the netstat command. This command is a very useful tool for discovering networking information such as routing tables, network connections, interface statistics, masquerade connections, and multicast memberships. But it&#8217;s not quite as simple to use as some of of the other &#8220;discovery&#8221; tools (such as ifconfig). With netstat you really do need to know what you&#8217;re looking for and how to find it. This article will help you to understand just that.</p><p><span
id="more-24731"></span><strong>Installation?</strong></p><p>Fortunately your distribution should come with the <em>netstat</em> command pre-installed. To check this, open up a terminal window (that&#8217;s where you will use netstat anyway) and issue the command <em>which netsat</em>. This command should return something like <em>/bin/netstat</em>. That will tell you that the tool is installed and where the executable is.</p><p><strong>Usage</strong></p><p>Because netstat offers such a variety of options, it might be best if I first list some of the more useful options.</p><p><strong>a</strong>: Shows the state of all sockets and routing table entries.</p><p><strong>c</strong>: Display information continuously.</p><p><strong>d</strong>: Show the state of all interfaces that use DHCP.</p><p><strong>e</strong>: Show extended information.</p><p><strong>g</strong>: Show the multicast group membership information for both IPv4 and IPv6.</p><p><strong>i</strong>: Display a table of all network inferfaces.</p><p><strong>l</strong>: Limit statistics to a defined interface.</p><p><strong>M</strong>: Show multicast routing tables.</p><p><strong>n</strong>: Shows network addresses as numbers instead of the default symbols.</p><p><strong>p</strong>: Show address resolution tables.</p><p><strong>P</strong>: Limit statistics to a defined protocol.</p><p><strong>r</strong>: Show all routing tables.</p><p><strong>t</strong>: Show TCP connections.</p><p><strong>u</strong>: Show UDP connections.</p><p><strong>v</strong>: Use verbose mode for output.</p><p>So let&#8217;s take a look and see how these can be used together.</p><p><strong>netstat</strong></p><p>By itself (no options) this command prints out generic statistics of the host you are currently connected to.</p><p><strong>netstat -an</strong></p><p>This command will display all connections to the host, including source and destination addresses and ports, and displays them as numbers.</p><p><strong>netstat -rn</strong></p><p>This command will display the routing table for the host in numeric form.</p><p><strong>netstat -r</strong></p><p>This command will display your routing table for your host.</p><p><strong>netstat -natp</strong></p><p>This command will display active TCP connections in numerical form.</p><p><strong>netstat -t &#8211;listening</strong></p><p>This will show you all tcp ports you host is listening on.</p><p><strong> </strong></p><p><strong></p><div
id="attachment_24733" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/04/netstat_output.png"><img
class="size-medium wp-image-24733 " src="http://www.ghacks.net/wp-content/uploads/2010/04/netstat_output-500x351.png" alt="" width="300" height="211" /></a><p
class="wp-caption-text">Figure 1</p></div><p>netstat &#8211;statistics</strong></p><p>This command will display various statistics for your host&#8217;s interfaces. Note that this command will display a LOT of statistics. A snippet of the output will look like that shown in Figure 1.</p><p>As you can see, this command will display quite a bit of information. On top of that you might need to pipe this command through the <em>less </em>command in order to see it more easily. That full command would look like <em>netstat &#8211;statistics | less. </em>Using it that way would allow you to use your arrow keys to scroll up and down through the ouput.</p><p><strong>Final thoughts</strong></p><p>Although not an exhaustive look at the netstat command, this will get you started and using this handy tool. Since there are so many switches and options to use with netstat, in order to cover them all, take a look at the netstat man page (issue the command <em>man netstat</em>) where you can see each and every switch explained.</p><p>﻿﻿</p><p><strong><br
/> </strong></p><p><strong><br
/> </strong></p><p><strong><br
/> </strong></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/04/20/using-netstat/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Fport Maps Ports To Applications</title><link>http://www.ghacks.net/2009/02/03/fport-maps-ports-to-applications/</link> <comments>http://www.ghacks.net/2009/02/03/fport-maps-ports-to-applications/#comments</comments> <pubDate>Tue, 03 Feb 2009 09:22:49 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[cport]]></category> <category><![CDATA[fport]]></category> <category><![CDATA[list ports]]></category> <category><![CDATA[open ports]]></category> <category><![CDATA[port]]></category> <category><![CDATA[port scan]]></category> <category><![CDATA[portable software]]></category> <category><![CDATA[tcp]]></category> <category><![CDATA[tcp port]]></category> <category><![CDATA[udp]]></category> <category><![CDATA[udp port]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10300</guid> <description><![CDATA[Fport is a portable command line utility that will report all open TCP and UDP ports to the user. The port analyzer maps each open port to an application to distinguish itself from the netstat -an command in Windows which otherwise would provide the same amount of information. What this means is that Fport will [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.mcafee.com/us/downloads/free-tools/index.aspx">Fport</a> is a portable command line utility that will report all open TCP and UDP ports to the user. The port analyzer maps each open port to an application to distinguish itself from the <strong>netstat -an</strong> command in Windows which otherwise would provide the same amount of information.</p><p>What this means is that Fport will basically display all open ports and the applications that use them for their connection. This makes it very easy to find unauthorized connections by simply verifying the applications one by one.</p><p>Fport has to be launched from the command line or a batch script. It will display all open ports and their applications if it is executed without switches. The following switches are available:<br
/> <span
id="more-10300"></span><br
/><blockquote> /p (sort by port)<br
/> /a (sort by application)<br
/> /i (sort by pid)<br
/> /ap (sort by application path)</p></blockquote><p>The output will look like this:</p><blockquote><p>C:\>fport<br
/> FPort v2.0 &#8211; TCP/IP Process to Port Mapper<br
/> Copyright 2000 by Foundstone, Inc.<br
/> http://www.foundstone.com<br
/> Pid   Process            Port  Proto Path<br
/> 392   svchost        ->  135   TCP   C:\WINNT\system32\svchost.exe<br
/> 8     System         ->  139   TCP<br
/> 8     System         ->  445   TCP<br
/> 508   MSTask         ->  1025  TCP   C:\WINNT\system32\MSTask.exe</p><p>392   svchost        ->  135   UDP   C:\WINNT\system32\svchost.exe<br
/> 8     System         ->  137   UDP<br
/> 8     System         ->  138   UDP<br
/> 8     System         ->  445   UDP<br
/> 224   lsass          ->  500   UDP   C:\WINNT\system32\lsass.exe<br
/> 212   services       ->  1026  UDP   C:\WINNT\system32\services.exe</p></blockquote><p>The easiest way to work with fport is to save the output into a text document for further processing. This can be done with the command <strong>fport > output.txt</strong> which will create a text document with the name output.txt in the root directory of fport.</p><p>A similar application with a graphical user interface is <a
href="http://www.ghacks.net/2005/11/06/who-is-connected-to-your-pc-right-now/">Cports</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/02/03/fport-maps-ports-to-applications/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Measure exact throughput of any TCP IP network</title><link>http://www.ghacks.net/2008/07/09/measure-exact-throughput-of-any-tcp-ip-network/</link> <comments>http://www.ghacks.net/2008/07/09/measure-exact-throughput-of-any-tcp-ip-network/#comments</comments> <pubDate>Wed, 09 Jul 2008 08:00:48 +0000</pubDate> <dc:creator>Tobey</dc:creator> <category><![CDATA[Online Services]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[ip]]></category> <category><![CDATA[iperf]]></category> <category><![CDATA[netcps]]></category> <category><![CDATA[network]]></category> <category><![CDATA[tcp]]></category> <category><![CDATA[tcp/ip]]></category> <category><![CDATA[traffic]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=5196</guid> <description><![CDATA[Wondering how much traffic can be pulled through the network you&#8217;re working in during certain period of time or how quickly your network components work? Yeah, be a networking proffesional or a regular home user with a small LAN (like me :) ), it&#8217;s always good to know what&#8217;s your network capable of. But how [...]]]></description> <content:encoded><![CDATA[<p>Wondering how much traffic can be pulled through the network you&#8217;re working in during certain period of time or how quickly your network components work? Yeah, be a networking proffesional or a regular home user with a small LAN (like me :) ), it&#8217;s always good to know what&#8217;s your network capable of. But how do we find out? Well, some smart IT guys thought a utility capable of precisely measuring the amount of data flow within a period of time could come in handy and were so kind to share these tiny yet sophisticated utilities. Though, you do need to be able to access both endpoints between which you want to measure since the applications must be running on both sides in a server-client setting. Let the measuring begin!</p><p><span
id="more-5196"></span>NetCPS &#8211; the easier way</p><p>This little tool called <a
href="http://www.netchain.com/netcps/">NetCPS</a> (a single executable file) is rather simplistic, no fancy features as the author (credits to Jarle Aase) says. It pumps 100MB of generated data (without accessing the HDD which could mess with the final result) and then displays the result in form of average speed stated in both KB/s and MB/s. Sourcecode is available for download as well in case you&#8217;d like to do some further tinkering with it. Freely usable unless you intend to use it on behalf of military or government.</p><p><a
href="http://www.scrnshots.com/users/Cyberfly/screenshots/16410"><img
src="http://s3.amazonaws.com/scrnshots.com/screenshots/16410/ScreenShot00007.png" /></a></p><p>Example of use:</p><p>Server-side end-point: netcps -server<br
/> Client-side end-point2: netcps *IP address/hostname of the host*</p><p>Additional switches to change the default port (4455) and default amount of transfered data (100MB) are supported. Use the -help switch for further instructions.</p><p>Iperf &#8211; the powerful way</p><p>This tool on the contrary is rather advanced while still maintaining its portability and small size. It can measure performance with many different settings but those are optional and not neccessary for the essential purpose of finding out what the network&#8217;s throughput is. You can affect a lot of settings by changing them with various switches. Take notice of the example screenshot for instance, where the port used is changed to 1234, amount of sent data set to 200 MB, interval of reports set to 2 seconds for better accuracy and report format set to MBytes. Iperf can be run as a solid Windows service as well. Here&#8217;s a download link to the compiled Windows version of <a
href="https://publishing.ucf.edu/sites/itr/cst/Pages/home.aspx">Iperf</a> (a single executable).</p><p><a
href="http://www.scrnshots.com/users/Cyberfly/screenshots/16830"><img
src="http://s3.amazonaws.com/scrnshots.com/screenshots/16830/ScreenShot00008.png" /></a></p><p>Example of use:</p><p>Server-side end-point: iperf -s -p 1234<br
/> Client-side end-point2: iperf -c *IP address/hostname of the host*</p><p>Many additional switches and settings are available for advanced use of this nifty utility. The usual -help switch brings up further instructions again.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/07/09/measure-exact-throughput-of-any-tcp-ip-network/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
