Solved

Named Pipes Application Run on Windows 7 Virtual PC.

Posted on 2013-01-29
6
763 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
Comment Utility
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
Comment Utility
Which virtualization software is being used?
0
 

Author Comment

by:ChiliPequin
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 333 total points
Comment Utility
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
Comment Utility
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
Comment Utility
This approach seems to solve the problem.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

771 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

10 Experts available now in Live!

Get 1:1 Help Now