Solved

Named Pipes Application Run on Windows 7 Virtual PC.

Posted on 2013-01-29
6
767 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 78

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 78

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Data is not showing from images 15 37
ASP.NET 5 Templates 2 66
Copy dir and files with robocopy 2 35
pre-selecting applications in MDT 7 15
OfficeMate Freezes on login or does not load after login credentials are input.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now