Solved

Named Pipes Application Run on Windows 7 Virtual PC.

Posted on 2013-01-29
6
778 Views
Last Modified: 2013-02-08
Hi Experts,

I have an MFC application that uses Named Pipes.  It is working fine on a stand alone PC.  I try to use this same application on a Windows 7 Virtual workstation, but the message from the pipe client is not always sent to the same the virtual workstation.  What should I do to get this to work correctly?

Thanks in advance.
0
Comment
Question by:ChiliPequin
  • 3
  • 2
6 Comments
 
LVL 19

Assisted Solution

by:strivoli
strivoli earned 167 total points
ID: 38834322
The client is a physical PC that connects to a server which is a virtual W7?
Is the connection between client and server, reliable?
0
 
LVL 80

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 333 total points
ID: 38834383
Which virtualization software is being used?
0
 

Author Comment

by:ChiliPequin
ID: 38837339
Hi experts,

Both the client and the server reside in the same session of the Virtual Workstation.  Currently, the server uses the CreateNamedPipe with the name:  LPTSTR lpszPipeName = TEXT("\\\\.\\pipe\\myPipeApp");  Since we move this application to a virtual workstation, there are many other sessions; therefore, when the client sends the request, sometimes the request is routed to one session, other times, the request is routed to another session.  

I am thinking of replacing the . in the pipename to the IP address of the session on the V-workstation, but the create fails with error 123 when the . is replaced with the ip address like LPTSTR lpszPipeName = TEXT("\\\\12.34.567.89\\pipe\\myPipeApp");

Thanks.
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
LVL 80

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 333 total points
ID: 38837631
to connect you would use \\192.168.0.100\pipe\pipename but the pipe must already be connected.

http://stackoverflow.com/questions/719353/win32-named-pipes-and-remote-clients
0
 

Accepted Solution

by:
ChiliPequin earned 0 total points
ID: 38849736
Hi Experts,

Thank you very much for your input.  I have found a solution for my question.  After reading further on Microsoft document, I realize that from the server side, I can only use the dot for local server when I create a namedpipe.  I now append the virtual IP address to the name when I create a namedpipe.  This approach seems to work for me.

Thanks again for your advice.
0
 

Author Closing Comment

by:ChiliPequin
ID: 38867431
This approach seems to solve the problem.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question