Re: Named pipe problem



I've now donw some investigative work on this and I've found the problem but
have no idea what is causing it.

The situation is this. When the client opens a pipe on the same machine as
the server, I get 1 pipe connect request.

When the same client program on a different computer opens the same pipe I
get TWO pipe connect requests. This is why I was getting error 231 when
connecting over a network.

Please, can anyone provide some info as to what is happening please - why am
I getting 2 connection requests over a network?

John.

"2kaud" wrote:

Thanks for the suggestion. I've now tried the SDK example and indeed that
does work like a charm!

As far as I can see, the only difference between that example and my own
code for the actual connection of the pipes is that I use NULL for the
security descriptor for CreateFile/CreateNamedPipe and the SDK example builds
an explicit Security Descriptor.

I'll try building and using the same SD from the SDK example in my own code
and see what happens. I'll post back here with my results.

John.

"Arkady Frenkel" wrote:

Did you tried pipe example from PSDK that work like a charm for server and
clients on different computers.
Look at C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Samples\WinBase\IPC\NamePipe project for that. The only difference that
local ( to server ) clients receive notification that server gone but not
remote

Arkady

"2kaud" <2kaud@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:42C1A37C-A13A-4045-B537-94D0E8BA739D@xxxxxxxxxxxxxxxx
Please can someone kindly help me. I'm trying to establish a named pipe
connection between two computers. When I run the client (CreateFile with .
as
computer name) and the Server (CreateNamedPipe) on the same computer it
works.

However, when I run the client (with the computer name of the server in
CreateFile) on a different computer to the server I get error 231 - All
pipe
instances are busy - which they are not!

What is going on please? How can I establish a named pipe connection
between
2 computers?

Any help would be much appreciated please.

John.



.



Relevant Pages

  • Re: .Net Scalability problem
    ... LoadRunner will peak out a server with a few virtual users. ... To get an idea of load, ... Fire off the test client and watch the number of ... > So I think that the MTC generate concurrent connection and per ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Regular disconnections from remote web workplace
    ... I can connect to office server and all office clients from home at all times ... be physically working right up until the connection is lost. ... If I enter http://companyip from a client I receive the login screen for the ... Click Services tab and select Hide All Microsoft Services and Disable ...
    (microsoft.public.windows.server.sbs)