Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8114829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:16:26+00:00 2026-06-06T03:16:26+00:00

On 32-bit WinXP — Is it possible to have two COM ports directly connect

  • 0

On 32-bit WinXP — Is it possible to have two COM ports directly connect to each other and transfer data? I have a USB to Serial dongle linked to another USB to serial dongle linked with a Null Modem. Using the Java RXTX library I am able to detect the COM port on each computer so I know that works OK. Can I send data directly to the other serial port through this setup and utilizing this library?

From Computer A / COM1:

CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier("COM1");
CommPort commPort = portIdentifier.open("serial1",2000);
SerialPort serialPort = (SerialPort) commPort;
serialPort.setSerialPortParams(9600,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE);
InputStream in = serialPort.getInputStream();
OutputStream out = serialPort.getOutputStream();

I don’t seem to be able to access computer B COM2 port via this mechanism. Are there other constructs that I should be using here?

I would like it so that computer B could read from the stream as I wrote to it on Computer A.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:16:27+00:00Added an answer on June 6, 2026 at 3:16 am

    One thing you could try to confirm that it’s nothing with the RXTX library, or your cable/adapter, you could open up a hyperterminal session at each computer, configure equal serial port parameters, and start typing in one of them – the text should appear in the other, and vice versa. If you have that working, then it’s just a problem with the code.

    I found this good example. You could take out the writing part and put that at one computer, and the reading part and put it in the other.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a legacy application (created in Delphi 6 under WinXP in 32-bit, recently ported
Bit of a puzzle for you.... I have a 730px wide, auto height div.
Bit of an unusual question, but I have setup a field inside a MySQL
Bit support question. Apologies for that. I have an application linked with GNU readline.
Bit of a philosophical question. If you have a public website with a site
Using VC# 2008, in WinXP 32 bit, the following function private void webBrowser1_DocumentCompleted(object sender,
How should I implement these 64-bit interlocked functions on WinXP? Of course I can
I have a 64 bit VB.NET application and want to allocate a buffer >
We're running an C#.net app with users who might have WinXP or might have
I have a simple x86-targeting .NET 3.5 console program that calls methods on COM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.