<?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>Ecosystem Tools &#8211; com0com</title>
	<atom:link href="https://com0com.com/ecosystem-tools/feed/" rel="self" type="application/rss+xml" />
	<link>https://com0com.com</link>
	<description>Virtual Serial Port Driver for Windows 11/10</description>
	<lastBuildDate>Wed, 21 Oct 2026 08:30:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://com0com.com/wp-content/uploads/2026/04/favicon-150x150.png</url>
	<title>Ecosystem Tools &#8211; com0com</title>
	<link>https://com0com.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Split One Serial Port Between Several Applications</title>
		<link>https://com0com.com/split-serial-port/</link>
					<comments>https://com0com.com/split-serial-port/#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 08:30:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/split-serial-port/</guid>

					<description><![CDATA[Windows treats a COM port as an exclusive resource: the first application to open it owns it, and every other application gets an error until the first one lets go. That rule collides with real work constantly — the GPS feed that three programs want, the data logger you dare not close, the rig-control software...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Windows treats a COM port as an exclusive resource: the first application to open it owns it, and every other application gets an error until the first one lets go. That rule collides with real work constantly — the GPS feed that three programs want, the data logger you dare not close, the rig-control software and the logging software that both need the radio. “Splitting” a serial port means breaking that rule safely, and on this site it means one specific, free, well-documented tool: <strong>hub4com</strong>, the hub from the com0com project. This page explains the approach, its one real caveat, and the honest point at which a dedicated splitter product becomes the easier answer.</p>



<h2 class="wp-block-heading">The idea: the hub opens the port once, applications open virtual ports</h2>



<p class="wp-block-paragraph">A splitter has to stand between the exclusive port and the crowd. hub4com&#8217;s arrangement — the one its ReadMe documents in the GPS hub example — is simple:</p>



<ol class="wp-block-list">
<li>The real port (say COM1) is opened by <strong>hub4com only</strong>. The exclusivity rule is satisfied because exactly one program holds it.</li>



<li>You create <strong>one com0com pair per application</strong>. The inner ends (CNCB0, CNCB1, …) face the hub; the outer ends get ordinary names (COM5, COM6, …) that applications can open.</li>



<li>hub4com copies what the real port receives to <strong>every</strong> inner end, so every application hears the device. The full worked example — pair creation commands included — is the <a href="/share-gps-multiple-apps/">GPS sharing recipe</a>; the hub command at its heart is just:</li>
</ol>



<pre class="wp-block-code"><code>hub4com \\.\COM1 \\.\CNCB0 \\.\CNCB1</code></pre>



<p class="wp-block-paragraph">Each application now believes it has the device to itself, on its own port. Nothing is emulated per-application and nothing is polled: the hub fans the stream out as it arrives.</p>



<h2 class="wp-block-heading">Read-only sharing is safe; writing is the shared resource</h2>



<p class="wp-block-paragraph">How well splitting works depends on which direction your data flows. One-way streams — GPS NMEA, weather stations, AIS receivers, industrial sensors, most loggers — broadcast perfectly: the ReadMe states the hub “will send data received from COM1 port to CNCB0 and CNCB1 ports”, and any number of listeners can consume identical copies without affecting each other or the device.</p>



<p class="wp-block-paragraph">Two-way devices need more care. The ReadMe also documents a return path — data received from CNCB0 is sent back to COM1 — because devices like radios and instruments accept commands. But a return path shared by several applications is a party line: if two programs send configuration commands at the same time, the device receives them interleaved, and replies cannot be attributed to one sender. Practical rule: designate <strong>one controlling application</strong> that is allowed to talk back, and let the rest listen. If two programs genuinely must control the same device simultaneously, a port splitter of any brand is the wrong layer — the applications themselves need to coordinate, typically through one program that owns the device and offers the others an interface.</p>



<p class="wp-block-paragraph">A related kindness in hub4com 2.1.0.0: its changelog records “serial port share mode to allow use COM port by other applications when port is not used by hub4com”, and the RFC 2217 wrapper exposes the same idea as <code>--share-com-port</code> — the port is opened on connect and closed on disconnect rather than held permanently. That helps the hub coexist with other software between sessions; it does not change the one-writer rule while a session is live.</p>



<h2 class="wp-block-heading">The gotcha that empties the stream: CTS handshaking</h2>



<p class="wp-block-paragraph">If your split is set up correctly but the real port delivers nothing, the hub4com ReadMe FAQ names the usual cause: “By default hub4com use CTS handshaking on output so if CTS state is OFF then no any data can be sent to the port.” Many simple devices and three-wire cables never raise CTS, so the hub politely waits forever. The FAQ&#8217;s fix is to disable CTS handshaking for the real port by putting <code>--octs=off</code> before it in the hub command. It is the single most common hub4com problem and it has nothing to do with your pairs — check it before rebuilding anything. (The <a href="/hub4com-guide/">hub guide</a> covers the same item in its testing walkthrough, and the <a href="/com0com-troubleshooting/">troubleshooting hub</a> covers driver-side failures.)</p>



<h2 class="wp-block-heading">When the job is bigger than splitting: the multiplexer</h2>



<p class="wp-block-paragraph">Splitting fans one port out locally. The package ships a second wrapper for the heavier, related job: carrying <em>several</em> ports across a <em>single</em> link — the ReadMe&#8217;s “Multiplexing” example, where a server computer&#8217;s COM2, COM3 and COM4 are made to appear on a client computer over one null-modem connection between their COM1 ports. That is what <code>examples/multiplexer.bat</code> builds, with a server end and a client end run over the shared link port:</p>



<pre class="wp-block-code"><code>multiplexer --baud 115200 COM1 --mode server CNCB1 CNCB2 CNCB3
multiplexer --baud 115200 COM1 CNCB1 CNCB2 CNCB3</code></pre>



<p class="wp-block-paragraph">Each named subport gets its own tagged channel inside the one link, and the same wrapper can switch the link to TCP and add a shared secret for encryption. Reach for the multiplexer when the constraint is the link — one cable, one connection, many ports — and for plain hub4com when the constraint is simply several local applications and one device.</p>



<h2 class="wp-block-heading">One hub can host more than one split</h2>



<p class="wp-block-paragraph">Nothing in the pattern limits you to one device. Ports on a hub4com command line are just a list, and the ReadMe&#8217;s own examples put three ports into a single hub as a matter of course. A second receiver or instrument can join the same hub process as its own fan-out — its real port plus its own pair ends appended to the command — or run under a second hub instance if you prefer the setups independent. The practical limit is not the hub; it is your discipline about which application is allowed to write to which device.</p>



<h2 class="wp-block-heading">Two things splitting cannot do</h2>



<ul class="wp-block-list">
<li><strong>It cannot share a port another program already holds.</strong> The hub must be the program that opens the real port. If an application has COM1 open directly, close it (and retrain it onto a virtual port) before starting the hub.</li>



<li><strong>It cannot merge two talkers into one listener coherently.</strong> Splitting fans one source out to many listeners. Feeding several devices <em>into</em> one application is the opposite shape — a routing and joining problem with its own collisions, not something to improvise on a shared return path.</li>
</ul>



<h2 class="wp-block-heading">A quick decision guide</h2>



<ul class="wp-block-list">
<li>Several programs only <strong>listen</strong> to one device → the hub pattern above; this is the easy, safe case.</li>



<li>One program <strong>controls</strong>, the rest listen → the hub pattern, with the controller on the pair whose return path you use, and the listeners told to stay read-only where the software allows it.</li>



<li>Two programs must <strong>both control</strong> the device → no splitter is the answer; put one program in charge of the device and have the other talk to it.</li>



<li>The PC is <strong>locked down</strong> or the setup is business-critical → weigh the dedicated splitter products discussed below.</li>
</ul>



<h3 class="wp-block-heading">When a dedicated splitter is easier</h3>



<p class="wp-block-paragraph">hub4com is free, scriptable and exact, but it is a 2012 console tool configured by command line, and its “interface” is a console window you must leave running. Commercial splitter products trade money for a graphical interface, saved configurations, a supported vendor and — on modern Windows — a driver that went through current Microsoft signing. If your splitting need is permanent, business-critical, or on a machine where com0com&#8217;s driver signing situation (see the <a href="/fix-com0com-code-52/">Code 52 guide</a>) is a blocker, that trade can be the right call. Our <a href="/virtual-serial-port/">virtual serial port overview</a> compares the field — the free com0com stack, VSPE, Eltima&#8217;s driver and splitter, and the hardware options — with prices verified from the vendors, so you can make that judgement with the whole picture in front of you.</p>



<p class="wp-block-paragraph">For most home, lab and workshop setups, though, the free stack is enough: one hub, one pair per application, one writer at a time. Start with the <a href="/share-gps-multiple-apps/">GPS recipe</a> even if your device is not a GPS — it is the cleanest worked example of the pattern — and keep <code>--octs=off</code> in mind the first time a real port stays silent.</p>

]]></content:encoded>
					
					<wfw:commentRss>https://com0com.com/split-serial-port/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RFC 2217 With hub4com: Share a Serial Port Over the Network</title>
		<link>https://com0com.com/rfc2217-server-client/</link>
					<comments>https://com0com.com/rfc2217-server-client/#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:45:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/rfc2217-server-client/</guid>

					<description><![CDATA[A plain serial-to-TCP bridge moves bytes, but a serial port is more than bytes: it has a baud rate, data bits, parity, and modem signals like DTR and CTS that real applications expect to control. RFC 2217, the “Telnet Com Port Control Option”, is the protocol that carries those settings and signals across the network,...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A plain serial-to-TCP bridge moves bytes, but a serial port is more than bytes: it has a baud rate, data bits, parity, and modem signals like DTR and CTS that real applications expect to control. <strong>RFC 2217, the “Telnet Com Port Control Option”</strong>, is the protocol that carries those settings and signals across the network, so a port on another computer behaves like a port on yours. In the com0com project, RFC 2217 belongs to <a href="/hub4com/">hub4com</a> — its changelog records “Implemented RFC 2217 ‘Telnet Com Port Control Option’ protocol” in version 2.0.0.0 — and it is exposed through the <code>com2tcp-rfc2217.bat</code> wrapper. This page gives you the official server and client recipes, from the hub4com ReadMe, exactly as the project documents them.</p>



<h2 class="wp-block-heading">Server: share this PC&#8217;s serial port</h2>



<p class="wp-block-paragraph">The scenario from the ReadMe: “You have a server computer with physical COM1 port and you&#8217;d like to share it through the network by the RFC 2217 protocol.” One command starts the server:</p>



<pre class="wp-block-code"><code>com2tcp-rfc2217 COM1 7000</code></pre>



<p class="wp-block-paragraph">In the ReadMe&#8217;s words, “it will listen TCP/IP port 7000 for incoming connections and redirect them to COM1 port.” That is the whole server: the wrapper configures hub4com with the RFC 2217 server-side filters, opens COM1, and waits. Any RFC 2217 client — the matching wrapper below, a commercial redirector, a device server acting as a client — can now connect to this PC on TCP port 7000 and use COM1 as its own.</p>



<p class="wp-block-paragraph"><strong>Firewall note:</strong> the server PC must accept inbound TCP connections on the port you chose (7000 in the example). Windows Firewall will typically prompt the first time hub4com listens, or you can add an inbound rule for TCP 7000 scoped to your local network. If the server starts without error but no client can reach it, the firewall — not the serial side — is the first suspect.</p>



<h2 class="wp-block-heading">Client: make the remote port a local virtual port</h2>



<p class="wp-block-paragraph">On the client computer, the remote port becomes usable once it has a local face — a com0com virtual port. The ReadMe&#8217;s client example creates a pair first, giving the application-facing end the name COM5 and, notably, enabling baud rate emulation on it:</p>



<pre class="wp-block-code"><code>command&gt; install 0 PortName=COM5,EmuBR=yes -</code></pre>



<p class="wp-block-paragraph">Then the wrapper connects the pair&#8217;s inner end to the server:</p>



<pre class="wp-block-code"><code>com2tcp-rfc2217 \\.\CNCB0 your.comport.server 7000</code></pre>



<p class="wp-block-paragraph">As the ReadMe puts it, this “will redirect virtual serial port COM5 on the second computer to the physical serial port on the first computer.” Applications on the client open COM5 exactly as if the device were plugged in locally; the RFC 2217 negotiation carries baud rate, parity and signal changes across the wire to the real port. (The <code>EmuBR=yes</code> in the pair creation is the driver&#8217;s baud rate emulation switch — the <a href="/com0com-hangs-buffer-overrun/">EmuBR/EmuOverrun guide</a> explains what it does and why the project pairs it with network use.)</p>



<h2 class="wp-block-heading">Wrapper options worth knowing</h2>



<p class="wp-block-paragraph">The com2tcp-rfc2217.bat usage text (run it with <code>--help</code>) documents more than the two recipes. The ones that matter in practice:</p>



<ul class="wp-block-list">
<li><strong><code>--share-com-port</code></strong> — in the usage text&#8217;s words, “open the com port on connecting and close it on disconnecting. By default the com port is open permanently.” On the server side this lets the port be used locally between network sessions instead of being held by the wrapper forever.</li>



<li><strong><code>--reconnect &lt;t&gt;</code></strong> (client mode) — force reconnection to the remote host after a disconnect, with the interval in milliseconds, for links that must heal themselves.</li>



<li><strong><code>--connect &lt;state&gt;</code> and <code>--delay-disconnect &lt;t&gt;</code></strong> — make the network connection follow a modem signal (CTS, DSR, DCD, ring or break), and smooth over brief signal drops before actually disconnecting.</li>



<li><strong><code>--keep-active &lt;s&gt;</code></strong> — send a NOP every so many seconds so idle connections are not torn down by intermediaries.</li>



<li><strong><code>--interface &lt;if&gt;</code></strong> — bind listening or connecting to a specific network interface, on multi-homed PCs.</li>
</ul>



<h2 class="wp-block-heading">How the wrapper knows client from server</h2>



<p class="wp-block-paragraph">One detail confuses everyone the first time: the same batch file runs both ends. The disambiguation is in the arguments, as the wrapper&#8217;s usage text lays out. Give it a COM port and <em>two</em> further arguments — a host address and a host port — and you are in <strong>TCP client mode</strong>: it connects out to a listening server. Give it a COM port and <em>one</em> further argument — a listen port — and you are in <strong>TCP server mode</strong>: it waits for someone else to connect. The usage text also documents an explicit override, <code>--rfc2217-mode {c|s}</code>, noting that the default is client for TCP client mode and server for TCP server mode — in practice, the argument shape decides, and the option exists for the unusual setups where you need to force the serial-side role independently. If your wrapper “does nothing”, count your arguments first: a missing host address quietly turns a client into a server waiting for a connection that will never come.</p>



<p class="wp-block-paragraph">One less thing to debug than you might fear: the wrapper starts hub4com with CTS handshaking on output already disabled for the COM side (its generated command includes <code>--octs=off</code>) — the silent-real-port trap from the hub&#8217;s FAQ is pre-disarmed here, unlike in raw hub4com setups.</p>



<h2 class="wp-block-heading">An honest word about security</h2>



<p class="wp-block-paragraph">RFC 2217 is a telnet-family protocol from the era of trusted networks: in the form these recipes use it, the traffic — data and serial settings alike — crosses the network <strong>unencrypted</strong>, and the server side has no meaningful authentication. Treat TCP 7000 like a serial cable anyone on the path can unplug or splice. Run it on a LAN you trust, or inside a VPN tunnel; do not expose the listening port to the internet. Note also that the plain server recipe listens without restricting which interface or which callers are accepted — the wrapper&#8217;s <code>--interface</code> option can bind it to a specific adapter, and your firewall rules should assume that anything on the network that can reach the port can use the device behind it until you have deliberately narrowed that down. For the same reason, think before sharing a port attached to anything safety- or security-relevant: whoever can reach the port can drive the device.</p>



<h2 class="wp-block-heading">Alternatives, honestly ranked</h2>



<ul class="wp-block-list">
<li><strong>HW VSP3</strong> — a free single-port virtual serial port redirector from HW group, if all you need is one port over Ethernet and you prefer a dedicated tool to a wrapper script. The product is in run-out, but the free single-port version still covers the simple redirector case.</li>



<li><strong>Plain com2tcp</strong> — if the far end does not speak RFC 2217 and you only need raw bytes bridged, the simpler redirector in our <a href="/com2tcp-guide/">com2tcp guide</a> has fewer moving parts.</li>



<li><strong>A dedicated serial device server</strong> — when the “server computer” should not have to be a PC left running at all, a small hardware box puts the serial port on the network permanently; see <a href="/go/amazon-device-server" rel="sponsored nofollow">serial device servers on Amazon</a> (sponsored). This is the one commercial step-up that genuinely changes the setup rather than just re-skinning it.</li>
</ul>



<p class="wp-block-paragraph">Between the two recipes above you have the complete RFC 2217 pattern the project supports: publish with <code>com2tcp-rfc2217 &lt;port&gt; &lt;tcp port&gt;</code>, consume with a virtual pair and the matching client command. For the sibling jobs — sharing one port between several local applications, or bridging without RFC 2217 — see <a href="/share-gps-multiple-apps/">GPS sharing with hub4com</a> and the <a href="/split-serial-port/">port splitting guide</a>.</p>

]]></content:encoded>
					
					<wfw:commentRss>https://com0com.com/rfc2217-server-client/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>com2tcp Guide: Put a COM Port on the Network, the Supported Way</title>
		<link>https://com0com.com/com2tcp-guide/</link>
					<comments>https://com0com.com/com2tcp-guide/#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 07:00:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/com2tcp-guide/</guid>

					<description><![CDATA[com2tcp is the oldest network tool in the com0com project: a COM port to TCP redirector that lets a serial application talk across a network — to a TCP/IP host, or to a real serial port attached to another computer — as easily as if the port were local. If you have found old download...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">com2tcp is the oldest network tool in the com0com project: a <strong>COM port to TCP redirector</strong> that lets a serial application talk across a network — to a TCP/IP host, or to a real serial port attached to another computer — as easily as if the port were local. If you have found old download pages and forum posts recommending it, this guide explains what com2tcp was, what became of it, and how you actually use it today. The short version: you do not download com2tcp any more. It ships inside <a href="/hub4com/">hub4com</a>, and understanding why will save you from running a 2007 binary on a modern network.</p>



<h2 class="wp-block-heading">The honest history: 1.3.0.0 was the last standalone release</h2>



<p class="wp-block-paragraph">com2tcp&#8217;s standalone releases ended at <strong>version 1.3.0.0 in 2007</strong>. Two years later, hub4com 2.0.0.0 (March 2009) records in its own changelog: “Implemented all com2tcp functionality.” From that release on, the redirector lived inside the hub, and the hub4com ReadMe describes the modern arrangement precisely:</p>



<p class="wp-block-paragraph">“com2tcp.bat is a wrapper to hub4com.exe. It works very similar to the ‘COM port to TCP redirector’ (com2tcp). It supports all com2tcp&#8217;s options.” The batch file in hub4com&#8217;s <code>examples</code> folder translates a classic com2tcp-style command line into the equivalent hub4com invocation, filters and all. Same project, same author (Vyacheslav Frolov), same options — maintained as part of the hub package (hub4com 2.1.0.0, 2012) rather than as a separate fossil.</p>



<h2 class="wp-block-heading">What a redirector actually does</h2>



<p class="wp-block-paragraph">A redirector is a bridge with a serial end and a network end. Data arriving at the COM port is sent out over a TCP connection; data arriving from the network is delivered to the COM port. An application that only knows how to open COM2 can thereby talk to a service on another continent, or a device attached to a PC in another building, without knowing networks exist. The ReadMe&#8217;s example is deliberately retro — an MS-DOS terminal program from Norton Commander, TERM95.EXE, used to reach a telnet server — because that is the enduring use case: old software, new networks.</p>



<h2 class="wp-block-heading">The ReadMe recipe: an old terminal program meets telnet</h2>



<ol class="wp-block-list">
<li><strong>Create a virtual pair</strong> whose friendly end the application will open. The ReadMe creates COM2 paired with CNCB0: <code>command&gt; install 0 PortName=COM2 -</code> (the <a href="/setupc-commands/">setupc reference</a> explains the syntax).</li>



<li><strong>Start the redirector on the pair&#8217;s inner end</strong>, pointed at the telnet server — exactly as the ReadMe gives it:</li>
</ol>



<pre class="wp-block-code"><code>com2tcp --telnet \\.\CNCB0 your.telnet.server telnet</code></pre>



<ol class="wp-block-list">
<li><strong>Start the application on COM2.</strong> Everything it sends travels through the pair, through com2tcp&#8217;s wrapper, and out to the server; replies make the same trip back.</li>
</ol>



<p class="wp-block-paragraph">The <code>--telnet</code> option in that command is one of the options the batch file&#8217;s own usage text documents: “use Telnet protocol.” Its sibling <code>--terminal &lt;type&gt;</code> selects a terminal type (RFC 1091). Without <code>--telnet</code>, the bridge is a plain raw TCP connection — which is what most device and server work actually wants.</p>



<h2 class="wp-block-heading">Client mode and server mode</h2>



<p class="wp-block-paragraph">com2tcp.bat&#8217;s built-in usage (run it with <code>--help</code>) defines the two shapes the bridge can take:</p>



<ul class="wp-block-list">
<li><strong>Client mode:</strong> <code>com2tcp [options] \\.\&lt;com port&gt; &lt;host addr&gt; &lt;host port&gt;</code> — the redirector initiates the TCP connection to a listening host. This is the telnet example above, and the shape you use when the far end is a server.</li>



<li><strong>Server mode:</strong> <code>com2tcp [options] \\.\&lt;com port&gt; &lt;listen port&gt;</code> — the redirector listens on a local TCP port and bridges whoever connects to the COM port. This is how you publish a local serial device to the network in its simplest form.</li>
</ul>



<p class="wp-block-paragraph">The same usage text lists the line settings the wrapper accepts — <code>--baud</code> (default 19200), <code>--data</code> (default 8), <code>--parity</code> (default no) and <code>--stop</code> (default 1), each also accepting a “default” value meaning “use the port&#8217;s current settings” — plus two behavioural options worth knowing: <code>--ignore-dsr</code>, which stops the wrapper waiting for the DSR signal before connecting, and <code>--connect-dtr</code>, which ties the DTR signal to the connection state. On the client side, <code>--awak-seq</code> can hold the connection until a chosen wake-up sequence arrives from the port, and both modes accept <code>--interface</code> to choose which network interface the wrapper connects from or listens on — the sort of detail that matters on machines with both a wired and a wireless adapter. The full list is one command away: the batch file prints its complete usage, options and defaults whenever you run it with <code>--help</code>, and that built-in text — not a forum post — is the authority for what your copy accepts.</p>



<h2 class="wp-block-heading">Under the hood of the wrapper</h2>



<p class="wp-block-paragraph">It is worth knowing what the batch file actually does with your command line, because it explains the options above. com2tcp.bat does not contain a redirector; it assembles a hub4com command. Reading the script, it always adds a trace filter, and by default it adds a <em>pin2con</em> filter — a filter that ties the network connection to the port&#8217;s DSR signal, so the connection is made when the serial side signals readiness and dropped when that signal goes away. That is why <code>--ignore-dsr</code> exists: it removes the pin2con behaviour and makes the connection permanent for devices that never raise DSR. The wrapper also sets an automatic reconnect interval for the connection. None of this needs configuring for the standard recipes, but when a bridge connects and disconnects in a rhythm you did not expect, the DSR behaviour is the first place to look — and <code>--ignore-dsr</code> is the documented switch for it.</p>



<h2 class="wp-block-heading">com2tcp.bat or full hub4com?</h2>



<p class="wp-block-paragraph">Use <strong>com2tcp.bat</strong> when the job is one port to one network endpoint, in either direction. It is the redirector, with the redirector&#8217;s options, and nothing else to configure. Use <strong>hub4com directly</strong> when the job stops being a single bridge:</p>



<ul class="wp-block-list">
<li>More than two endpoints — one port feeding several applications or several ports (the <a href="/hub4com-guide/">hub guide</a> and the <a href="/share-gps-multiple-apps/">GPS sharing recipe</a>).</li>



<li>You need the stream modified on the way through — filters for modem pins, tracing, telnet handling.</li>



<li>You need <strong>RFC 2217</strong>, the protocol that carries serial settings and signals over the network properly. The ReadMe itself gives this advice: if com2tcp is what you need but you cannot find some required functionality — “for example RFC 2217 support” — “then try use hub4com instead.” In practice that means the sibling wrapper, covered in our <a href="/rfc2217-server-client/">RFC 2217 server and client guide</a>.</li>
</ul>



<h2 class="wp-block-heading">Getting it, and what to avoid</h2>



<p class="wp-block-paragraph">com2tcp.bat is in the <code>examples</code> folder of the hub4com 2.1.0.0 package — get it from the <a href="/hub4com/">hub4com hub page</a>, which publishes the package&#8217;s verified SHA-256 checksum, alongside the driver downloads on the <a href="/download/">download page</a>. The wrapper expects <code>hub4com.exe</code> to be findable (it adds its own folder to the path), so keep the batch files and the executable together as the package ships them.</p>



<p class="wp-block-paragraph">What to avoid: standalone “com2tcp” downloads from third-party software sites. At best they are the unmaintained 2007 binary, frozen before hub4com absorbed the functionality; at worst they are repackaged by people whose business is bundling. The project&#8217;s own distribution has everything those pages pretend to offer, in its maintained form. If your bridge misbehaves once running — a real port that receives nothing, a connection that drops — the hub&#8217;s own FAQ item on CTS handshaking (<code>--octs=off</code>) and the <a href="/com0com-troubleshooting/">troubleshooting hub</a> are the places to look next.</p>

]]></content:encoded>
					
					<wfw:commentRss>https://com0com.com/com2tcp-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Share One GPS Receiver Between Multiple Apps With hub4com</title>
		<link>https://com0com.com/share-gps-multiple-apps/</link>
					<comments>https://com0com.com/share-gps-multiple-apps/#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 06:15:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/share-gps-multiple-apps/</guid>

					<description><![CDATA[A GPS receiver produces one stream of NMEA sentences on one COM port — and a Windows COM port can normally be opened by only one application at a time. So the chart software gets the position fix, and the logging program, the APRS client and the time-sync tool all get “port in use”. This...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A GPS receiver produces one stream of NMEA sentences on one COM port — and a Windows COM port can normally be opened by only one application at a time. So the chart software gets the position fix, and the logging program, the APRS client and the time-sync tool all get “port in use”. This is the exact problem the com0com project&#8217;s own documentation solves: the hub4com ReadMe&#8217;s “GPS hub” example is the canonical recipe, and this page walks through it step by step, in the ReadMe&#8217;s own commands.</p>



<p class="wp-block-paragraph">The idea in one line: the GPS stays connected to its real port, <a href="/hub4com/">hub4com</a> opens that port once and copies everything it receives to the inner ends of two com0com pairs, and each application opens the friendly outer end of its own pair. Nobody shares a port, because everybody gets a port of their own.</p>



<h2 class="wp-block-heading">What you need</h2>



<ul class="wp-block-list">
<li>A GPS receiver connected to a physical COM port — the ReadMe example uses <strong>COM1</strong>. A USB GPS appears as a COM port too; substitute whatever number Device Manager shows for your receiver.</li>



<li>com0com installed and working (the <a href="/install-com0com-windows-11/">installation guide</a> covers the driver, including the Windows 11 signing situation).</li>



<li>hub4com 2.1.0.0 from the <a href="/hub4com/">hub page</a> — a single console program, no installer.</li>
</ul>



<h2 class="wp-block-heading">Step 1 — Create two pairs with friendly names</h2>



<p class="wp-block-paragraph">The ReadMe creates two pairs whose application-facing ends get real COM names (COM5 and COM6), while the hub-facing ends keep their default CNCB names. In the Setup Command Prompt (setupc), exactly as the ReadMe gives it:</p>



<pre class="wp-block-code"><code>command&gt; install 0 PortName=COM5 -
command&gt; install 1 PortName=COM6 -</code></pre>



<p class="wp-block-paragraph">Each command creates one pair. The first port of the pair is renamed to the COM name your applications will open; the dash tells setupc to leave the second port at its default name — CNCB0 for the first pair, CNCB1 for the second. The result is two pairs: COM5↔CNCB0 and COM6↔CNCB1. (The <a href="/setupc-commands/">setupc reference</a> explains the install syntax, and <a href="/rename-com0com-port/">the renaming guide</a> explains why applications need real COM names.)</p>



<h2 class="wp-block-heading">Step 2 — Start the hub</h2>



<p class="wp-block-paragraph">Now start hub4com on the real port and the two inner ends, exactly as the ReadMe does:</p>



<pre class="wp-block-code"><code>hub4com \\.\COM1 \\.\CNCB0 \\.\CNCB1</code></pre>



<p class="wp-block-paragraph">The ReadMe states the resulting data flow in plain words: “It will send data received from COM1 port to CNCB0 and CNCB1 ports and it will send data received from CNCB0 port to COM1 port.” In other words, the GPS stream is broadcast to both virtual ports, and the first virtual port also has a path back to the receiver. Leave the hub&#8217;s console window running — hub4com shares the port only while it runs.</p>



<h2 class="wp-block-heading">Step 3 — Point each application at its own port</h2>



<p class="wp-block-paragraph">Start the first GPS application on <strong>COM5</strong> and the second on <strong>COM6</strong>, as the ReadMe instructs. Both should immediately show live position data from the single receiver. The numbers 5 and 6 are the ReadMe&#8217;s example, not a requirement — if either number is already taken on your system (a Bluetooth stack or another adapter may hold it), pick any free numbers when you create the pairs and use those consistently in the applications; only the pairing of outer name to inner CNCB end matters, and setupc&#8217;s <code>list</code> command shows you the mapping if you lose track of it. Add a third application by creating a third pair the same way (outer end COM7, inner end CNCB2) and adding <code>\\.\CNCB2</code> to the hub command — the same fan-out pattern the ReadMe&#8217;s testing example uses with three pairs.</p>



<h2 class="wp-block-heading">The wiring, drawn out</h2>



<pre class="wp-block-code"><code>GPS receiver
    |  (real cable, physical port COM1)
    v
  COM1 ----&gt; hub4com ----&gt; CNCB0 ---- COM5 ----&gt; Chart software
                     |
                     +-----&gt; CNCB1 ---- COM6 ----&gt; Logger / APRS client
                     |
                     +-----&gt; CNCB2 ---- COM7 ----&gt; Third application (optional)</code></pre>



<p class="wp-block-paragraph">Read it left to right: one talker, one hub, one private virtual port per listener. The applications never see each other and never contend for COM1, because hub4com is the only program that ever opens it.</p>



<h2 class="wp-block-heading">Sharing etiquette: reading is free, writing is shared</h2>



<p class="wp-block-paragraph">NMEA output is a one-way broadcast, which is why GPS sharing works so well: any number of applications can <em>listen</em> without disturbing each other. Be more careful with applications that also <em>send</em> — configuration commands to the receiver, for instance. The ReadMe documents a return path from CNCB0 to COM1, so anything one application transmits can reach the receiver; two applications configuring the GPS at the same time will interleave their commands. Keep one writer and let the rest listen.</p>



<p class="wp-block-paragraph">One classic gotcha, straight from the hub4com ReadMe FAQ: if the real port seems to receive nothing through the hub, the cause is usually flow control — “by default hub4com use CTS handshaking on output so if CTS state is OFF then no any data can be sent to the port.” The fix is to add <code>--octs=off</code> before the real port in the hub command, as the FAQ prescribes.</p>



<h2 class="wp-block-heading">If your GPS is still on the shopping list</h2>



<p class="wp-block-paragraph">This recipe is software-only and works with the receiver you already have. If you are equipping a boat, a vehicle or a field laptop and need the hardware itself, these are the two pieces this setup actually consumes — a receiver that presents itself as a standard COM port, and, for older serial receivers, a quality USB-to-serial adapter (FTDI-based adapters are the dependable default; the <a href="/hub4com/">hub page</a> explains why the driver side matters):</p>



<ul class="wp-block-list">
<li><a href="/go/amazon-gps" rel="sponsored nofollow">USB GPS receivers on Amazon</a> (sponsored) — puck-style receivers that appear as a COM port and feed this recipe directly.</li>



<li><a href="/go/amazon-usb-serial" rel="sponsored nofollow">FTDI USB-to-serial adapters on Amazon</a> (sponsored) — for receivers with a classic 9-pin serial connector.</li>
</ul>



<h2 class="wp-block-heading">Prove it with a terminal before trusting your real applications</h2>



<p class="wp-block-paragraph">Before pointing chart software at the new ports, borrow the ReadMe&#8217;s own testing habit: open a plain terminal window on COM5 first. If the hub is running and the GPS is talking, NMEA sentences should scroll past continuously — lines beginning with <code>$GP</code> are the receiver narrating its position, time and satellite state. That thirty-second check separates the layers cleanly: sentences in the terminal mean the receiver, the hub and the pair are all working, and any remaining problem lives in the application&#8217;s own settings (wrong port number, or an application still configured for the old exclusive COM1). Repeat on COM6 and both halves of the split are proven independently.</p>



<h2 class="wp-block-heading">Day-to-day running</h2>



<p class="wp-block-paragraph">The pairs you created in Step 1 are driver-level devices: they stay on the system until you remove them with setupc (the <a href="/uninstall-com0com/">uninstall guide</a> covers removal), so you do not recreate them each morning. The hub, by contrast, is an ordinary program that runs in its console window and shares the port only while it is running. The daily routine is therefore just: start hub4com with the Step 2 command, then start your applications in any order. If you reboot, start the hub again — a small shortcut or startup script containing the one command line is all the automation this setup needs.</p>



<p class="wp-block-paragraph">With the hub running, your one receiver now serves the whole cockpit. The same pattern shares any one-way serial source — a weather station, an AIS receiver, a data logger — and the general form of the trick, including when several applications genuinely need to talk back, is covered in <a href="/split-serial-port/">Split One Serial Port Between Several Applications</a>. For moving a port across the network instead of across applications, see the <a href="/rfc2217-server-client/">RFC 2217 guide</a>.</p>

]]></content:encoded>
					
					<wfw:commentRss>https://com0com.com/share-gps-multiple-apps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>hub4com Guide: The com0com Hub for Sharing, Splitting and Bridging Ports</title>
		<link>https://com0com.com/hub4com-guide/</link>
					<comments>https://com0com.com/hub4com-guide/#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 05:30:00 +0000</pubDate>
				<category><![CDATA[Ecosystem Tools]]></category>
		<guid isPermaLink="false">https://com0com.com/hub4com-guide/</guid>

					<description><![CDATA[A com0com pair connects exactly two applications. Real serial work is rarely that tidy: one GPS receiver and three programs that all want its data, a device on another PC that you wish were plugged into yours, a stream you need to watch while it flows. That is the gap hub4com fills. It is a...]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">A com0com pair connects exactly two applications. Real serial work is rarely that tidy: one GPS receiver and three programs that all want its data, a device on another PC that you wish were plugged into yours, a stream you need to watch while it flows. That is the gap <strong>hub4com</strong> fills. It is a free Windows application from the same SourceForge project and the same author as com0com, and this guide explains how it works using the project&#8217;s own documentation — the hub4com ReadMe that ships in the package.</p>



<p class="wp-block-paragraph">The ReadMe introduces it in one sentence: hub4com “allows to receive data and signals from one port, modify and send it to a number of ports and vice versa.” Everything in this guide is an unpacking of that sentence. The current (and final) release is version 2.1.0.0 from 18 June 2012 — old, unmaintained, and still the reference tool for this job because the job itself has not changed. You can get the package from the <a href="/hub4com/">hub4com hub page</a>; the driver side of the story lives on the <a href="/download/">download page</a>.</p>



<h2 class="wp-block-heading">What hub4com is — and what it is not</h2>



<p class="wp-block-paragraph">hub4com is a user-mode console application, <code>hub4com.exe</code>. It is <strong>not a driver</strong>: it installs nothing into the kernel and creates no ports of its own. The virtual ports it works with come from the com0com driver, which is why the two tools are always used together — com0com manufactures the ports, hub4com moves data between them and the real world. If the driver itself is not installed yet, start with the <a href="/install-com0com-windows-11/">Windows 11 installation guide</a> and come back here once you can create a pair.</p>



<p class="wp-block-paragraph">The ReadMe names the two headline uses directly. In conjunction with the com0com driver, hub4com lets you “handle data and signals from a single real serial device by a number of different applications” — its example is several applications sharing data from one GPS device — and “use real serial ports of remote computer like if they exist on the local computer.” Splitting, joining, redirecting and multiplexing are all variations on those two themes.</p>



<h2 class="wp-block-heading">The core concepts</h2>



<h3 class="wp-block-heading">1. Ports: real, virtual and network, side by side</h3>



<p class="wp-block-paragraph">When you start hub4com you list the ports it should open on its command line. A port in that list can be a real hardware port such as <code>COM1</code>, one end of a com0com virtual pair such as <code>CNCB0</code> (written <code>\\.\CNCB0</code> on the command line), or — with the TCP driver option used in several ReadMe examples — a network endpoint. hub4com does not care which kind each entry is. That indifference is the whole design: to the hub, a GPS receiver, a virtual port and a TCP connection are all just ports that produce and consume data and modem signals.</p>



<h3 class="wp-block-heading">2. Routing: what comes in one port goes out the others</h3>



<p class="wp-block-paragraph">The ReadMe&#8217;s own testing procedure is the clearest demonstration of routing. Create three virtual pairs (CNCA0/CNCB0, CNCA1/CNCB1, CNCA2/CNCB2), start the hub on the three B ends, and attach a terminal to each A end:</p>



<pre class="wp-block-code"><code>hub4com --route=All:All \\.\CNCB0 \\.\CNCB1 \\.\CNCB2</code></pre>



<p class="wp-block-paragraph">“The data typed to any HyperTerminal window should be printed on the others HyperTerminal windows,” the ReadMe promises — and it is. The <code>--route=All:All</code> option in that command tells the hub to route every port to every port. Other examples route more selectively: in the GPS hub example below, the hub is started with no route option at all, and the ReadMe describes the resulting flow explicitly — data from the real port is sent to both virtual ports, and data from the first virtual port is sent back to the real port. Routing is how you decide who hears whom.</p>



<h3 class="wp-block-heading">3. Filters: modify the stream as it passes</h3>



<p class="wp-block-paragraph">The middle word of the ReadMe&#8217;s definition — “modify” — is the filters system. A filter is a named processing step you create and then attach to a port. The ReadMe&#8217;s chat-server example builds one with <code>--create-filter=telnet</code> and attaches it with <code>--add-filters=All:telnet</code> so that plain telnet clients can join the hub; its other examples use a <em>pinmap</em> filter to map modem pins (for instance, raising DTR while a connection is up) and a <em>trace</em> filter to watch traffic. You do not need filters for basic sharing, but knowing they exist explains most of the longer command lines you will find in the official examples: the ports are the nouns, the filters are the adjectives.</p>



<h3 class="wp-block-heading">4. Wrappers: one-purpose shortcuts around the hub</h3>



<p class="wp-block-paragraph">Three batch files in the package are, in the ReadMe&#8217;s FAQ wording, “wrappers to the hub4com.exe”: <code>com2tcp.bat</code> (COM port to TCP redirector), <code>com2tcp-rfc2217.bat</code> (the same, speaking the RFC 2217 protocol) and <code>multiplexer.bat</code> (several ports carried over a single link). Each translates a short, friendly command line into a long hub4com invocation with the right filters preconfigured. Use the wrappers for the jobs they name — our <a href="/com2tcp-guide/">com2tcp guide</a> and <a href="/rfc2217-server-client/">RFC 2217 guide</a> cover both — and drop to raw hub4com when you need routing or filters of your own.</p>



<h2 class="wp-block-heading">Your first hub: the ReadMe&#8217;s four-step test</h2>



<p class="wp-block-paragraph">Before building anything real, run the project&#8217;s own smoke test. It takes a few minutes and proves the driver, the hub and your understanding of routing in one go.</p>



<ol class="wp-block-list">
<li><strong>Create three pairs.</strong> In the Setup Command Prompt, create pairs so that CNCA0/CNCB0, CNCA1/CNCB1 and CNCA2/CNCB2 exist (the <a href="/create-virtual-com-port-pair/">first-pair guide</a> and the <a href="/setupc-commands/">setupc command reference</a> cover the syntax).</li>



<li><strong>Start the hub</strong> on the three B ends with the routing command shown above: <code>hub4com --route=All:All \\.\CNCB0 \\.\CNCB1 \\.\CNCB2</code>. Leave the console window open — the hub runs in it, and closing it stops the hub.</li>



<li><strong>Open a terminal on each A end</strong> — CNCA0, CNCA1 and CNCA2 — in any terminal program (the ReadMe used HyperTerminal; any modern equivalent works).</li>



<li><strong>Type in any window.</strong> Your characters should appear in the other two windows. That is a working three-way hub: every port routed to every port.</li>
</ol>



<p class="wp-block-paragraph">If nothing appears, the most common cause with real ports is flow control, and the ReadMe&#8217;s FAQ answers it directly: “By default hub4com use CTS handshaking on output so if CTS state is OFF then no any data can be sent to the port. To disable CTS handshaking add <code>--octs=off</code> option before real com port.” Keep that one in your pocket; it is the single most useful hub4com troubleshooting fact there is.</p>



<h2 class="wp-block-heading">A practical hub: sharing one device</h2>



<p class="wp-block-paragraph">The test above becomes useful the moment one of the ports is real. The ReadMe&#8217;s GPS hub starts the hub like this:</p>



<pre class="wp-block-code"><code>hub4com \\.\COM1 \\.\CNCB0 \\.\CNCB1</code></pre>



<p class="wp-block-paragraph">Here COM1 is a physical GPS receiver, and CNCB0/CNCB1 are the inner ends of two virtual pairs whose outer ends (renamed COM5 and COM6) are what the applications open. The receiver&#8217;s data reaches both applications; one application&#8217;s data can flow back to the receiver. That three-line pattern — one real port, hub, two or more virtual ends — is the template for almost every real hub4com setup, including port splitting and GPS sharing. The full walkthrough, including creating the pairs with the ReadMe&#8217;s exact commands, is our <a href="/share-gps-multiple-apps/">GPS sharing recipe</a>; the general case is covered in <a href="/split-serial-port/">Split One Serial Port Between Several Applications</a>.</p>



<h2 class="wp-block-heading">Reading the official examples folder</h2>



<p class="wp-block-paragraph">The package&#8217;s <code>examples</code> folder and the ReadMe&#8217;s “Examples of usage” section are the real manual — hub4com has no other. What you will find there:</p>



<ul class="wp-block-list">
<li><strong>GPS hub</strong> — the sharing recipe above, in the ReadMe&#8217;s own words.</li>



<li><strong>COM port to telnet redirector</strong> — the com2tcp.bat example: an old DOS terminal program talking to a telnet server through a virtual pair.</li>



<li><strong>RFC 2217 server and client</strong> — sharing a real port over the network, and consuming a shared port as a local virtual port.</li>



<li><strong>Chat server</strong> — five telnet users on one hub, using the telnet filter and <code>--route=All:All</code>.</li>



<li><strong>Multiplexing and encryption</strong> — several remote ports carried over one null-modem or TCP link, optionally encrypted with a shared secret phrase (via multiplexer.bat).</li>



<li><strong>CVS proxy examples</strong> — period pieces from the SourceForge era; skip them unless you enjoy archaeology.</li>
</ul>



<p class="wp-block-paragraph">Each wrapper also documents itself: run any of the batch files with <code>--help</code> and it prints its own usage, options and defaults. The com2tcp.bat usage text, for example, lists its line settings (<code>--baud</code>, <code>--data</code>, <code>--parity</code>, <code>--stop</code>) with their defaults — the wrapper files are often more precise than the ReadMe about their own options.</p>



<h2 class="wp-block-heading">The options you will actually meet first</h2>



<ul class="wp-block-list">
<li><strong><code>--route=...</code></strong> — who hears whom; seen as <code>--route=All:All</code> in the testing and chat examples.</li>



<li><strong><code>--octs=off</code></strong> — disable CTS handshaking on output for the port that follows it; the FAQ&#8217;s fix for a real port that receives nothing.</li>



<li><strong><code>--use-driver=tcp</code></strong> — treat the following endpoints as TCP instead of serial; used by the chat-server and proxy examples.</li>



<li><strong><code>--create-filter=...</code> / <code>--add-filters=...</code></strong> — build a filter and attach it to ports; the telnet and pinmap filters appear throughout the examples.</li>



<li><strong><code>--load=...</code></strong> — read the hub&#8217;s arguments from a file instead of the command line; the FAQ shows how the wrappers use it, and it is how long configurations stay manageable.</li>
</ul>



<p class="wp-block-paragraph">That short list, plus the wrapper usages, covers the overwhelming majority of hub4com command lines in the wild. Resist copying longer configurations from old forum posts until you can say what each option does — most of them were written for a specific modem-signal problem that you may not have.</p>



<h2 class="wp-block-heading">When the hub is not the tool</h2>



<p class="wp-block-paragraph">Two applications, one pair, nothing shared? Plain com0com is enough — no hub required. One port sent to one network address? That is <a href="/com2tcp-guide/">com2tcp&#8217;s job</a>, in its modern wrapper form. A remote port that must behave like a local one, modem signals and all? That is <a href="/rfc2217-server-client/">RFC 2217</a>. The hub earns its place when more than two endpoints, or any modification of the stream, enter the picture. And when the problem is the driver underneath rather than the routing on top, the <a href="/com0com-troubleshooting/">troubleshooting hub</a> is the right starting point.</p>



<p class="wp-block-paragraph">hub4com rewards a few minutes of reading more than hours of guessing: three concepts — ports, routing, filters — explain every example the project ships. Start from the <a href="/hub4com/">hub page</a> for the download and the recipe index, run the four-step test, and then adapt the GPS pattern to whatever device you actually need to share.</p>

]]></content:encoded>
					
					<wfw:commentRss>https://com0com.com/hub4com-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
