Named Piped and TCP/IP Protocols
Why are the SQL Server Client Network Utility Named Piped and TCP/IP
Protocols supposed to be enabled?
I need to know specifically and not generally speaking. I cannot find any
supporting KB articles providing this information only on how to setup a ODBC
connection which we are already versed on.
In the installation manual for GP (page 13 for GP 10.0) the recommendation
is to limit your network to one protocol. Since TCP/IP is required for GP,
that's typically all you need.
Dynamics GP MVP
Flexible Solutions - home of GP Reports
http://...TCP connections from a listening port
I would like to know the active TCP connections established from a listening
port. How can I get that?
I got the active TCP connectionss using
I got the active TCP listeners using IPGlobalProperties.GetActiveTcpListeners
But I cannot link the two items
...CAsyncSocket & notifications
I derived a class from CAsyncSocket called CAppSocket and
instatiated an object within a user thread. A client
using CSocket attempts to connect (and returns TRUE), but
the CAppSocket object never seems to receive the FD_ACCEPT
message. The IP addresses and port numbers seem to add
up. Anybody have any ideas.
> I derived a class from CAsyncSocket called CAppSocket and
> instatiated an object within a user thread. A client
> using CSocket attempts to connect (and returns TRUE), but
> the CAppSocket object never seems to receive the FD_ACCEPT
> message...How can TCP host get the IP of TCP client?
i make a TCP host program. It can work well.
some of my program is as follows
void CListen::OnAccept(int nErrorCode)
// TODO: Add your specialized code here and/or call the base class
pMainFrame = (CMainFrame*)AfxGetMainWnd();
CClient *pSocket=new CClient();
pMainFrame->m_pListening->Accept(*pSocket, (SOCKADDR*)&SockAddr, &lpSockAddrLen);
my qu...TCP, CAsyncSocket
I am using CAsyncSocket with SOCK_STREAM option (using
TCP). I noticed that in most cases the messages I received
from the other end were ok, but sometimes two messages
were appended together, and sometimes a message was
chopped into two separate messages.
Is that a problem of using CAsyncSocket? Anyway I can fix
it? Do I get the same problem if I don't use CAsyncSocket?
> I am using CAsyncSocket with SOCK_STREAM option (using
> TCP). I noticed that in most cases the messages I received
> from the other end were ok, but sometimes t...Exchange 2007 Stepping on TCP Ports 5718 and 5719
We can't seem to get Exchange 2007 from grabbing TCP ports 5718 and 5719 and
disabling the DPM agent.
The only guidance we could find is as follows:
Strangely, this seems to apply only to Windows Server 2000 and 2003, not
2008. Furthermore, it hasn't stopped Exchange from grabbing these ports.
As mentioned in the KB, the Exchange System Attendant service might be
grabbing these ports. Have you tried the SetAgentCfg tool to change DPM ports
as mentioned in the support artic...Excel TCP port number
Hi folks, Does anyone know which TCP/IP port number Excel
What are you asking?
> Hi folks, Does anyone know which TCP/IP port number Excel
...CAsyncSocket datagram reading with ReceiveFrom()
I need some help with this from MSDN (CAsyncSocket::ReceiveFrom):
"For datagram sockets, data is extracted from the first enqueued datagram,
up to the size of the buffer supplied. If the datagram is larger than the
buffer supplied, the buffer is filled with the first part of the message,
the excess data is lost, and ReceiveFrom returns a value of SOCKET_ERROR
with the error code set to WSAEMSGSIZE."
Suppose my socket received 4 packets (distinct) of 256 bytes each before I
begin to read the data and I use a buffer of 512 bytes with ReceiveFrom().
Is ReceiveFrom will return wit...TCP/IP printing
Hello, I have a networking question. I have a print device with a
static IP address on one network. A computer on another network can
connect to the printer (NBT is enabled and so is LPR) and the drivers
are installed but cannot print. I know this is correct behavior but
want to know in detail why it seems to half work. I am guessing it
has to do with port 138,139 and 515 but not positive. Probably a
better question to ask a networking forum but hey.
can you access the printer through the printer IP address?
:D Just chill
-pls post your feedback on...TCP/IP Error
I recently unistalled McAfee and installed Norton Internet
Security. Everytime I try to send/recieve mail in Outlook
I get a TCP/IP error that says I have been unexpectedly
I can get on the internet and get to my email through our
internet provider page.
Does anyone have any suggestions? I have already tried
working with Norton and everything they have suggested
does not work.
Very likely that you may have some Macafee remnants left over. You should
contact Macafee or find a friendly neighborhood computer geek who can safely
go thru your system and registry to c...CAsyncSocket send
I have a problem sending a string to a server using the CAsyncSocket
I was using CSocket and transferring strings to the server using the
writestring function of CArchive. Now because of problems with
transferring data I have rewritten my code to use Casyncsocket. It all
seems to work except that I don't been able to transfer any strings to
the server. The server just don't react.
Does the function Writestring of CArchive writes any ending characters
so the server knows when it end and when it starts?
I have tried to add carriage return and line feeds but with n...Static TCP Port
Do we really need to configure both the registry keys for restricting AD
Replication to specific ports? Wouldn't TCP/IP Port reg key alone wont'
suffice? What is DCTcpipPort used for?
Registry key 1
Registry value: TCP/IP Port
Value type: REG_DWORD
Value data: (available port)
Back to the top
Registry key 2
Registry value: DCTcpipPort
Value type: REG_DWORD
Value data: (available port)
begin 666 uparrow.gif
M1TE&.#EA&qu...Adding IP's to 'Advanced TCP/IP Settings'
I want to write a script in powershell that will add IP's to a nic. i.e.
when added they will appear on the IP Addresses section on 'Advanced TCP/IP
Settings' of the TCP/IPv4 properties in 'Local Area Connection Properties'.
I've been looking at Win32_NetworkAdapterConfiguration however all the
examples I have seen so far just talk about getting IP addresses and adding a
Another consideration.....is there any best practices for adding hundreds of
IP's all in one go? Will doing them all in one go give any kind of
performance h...TCP Optimizer problem
I've used TCP Optimizer utility to "optimize" my network connection, after
applying changes and playing a little, I decided to revert changes back to
original settings, clicked "Restore Windows Default Settings", and after
this I can't get internet connection working anymore. I tried restart cable
modem, release/renew the IP address, restart PC, but this not help. Cable
modem itself is very sensitive to power interruptions and to the signal
level. What I think, possibly TCP Optimizer has not fully reverted registry
changes back to original settings? [...Message Queue CAsyncSocket
I'm using CAsyncSocket to create a client that communicates with a server.
I have used two CList<CByteArray*, CByteArray*> as inqueue and outqueue.
All Received data ends up in inqueue which I loop thru processing each
command in the list. Each 'answer' ends up in outqueue which I also loop
thru sending each item to the server.
What complicates this is that every 12 seconds I need to send a KeepAlive
I have tried this (and failed)
The normal messages are added to outqueue using AddTail but the KeepAlive
message is added to the outqueue using AddHead.
T...reading and writing xml using a tcp stream
I am writing a client/server application with a desktop and a pocketPC
which transfers a xml string which is to be loaded by a dataset on the
the server uses this code to prepare and send the xml:
Dim stringbuilder As New StringBuilder
Dim textwriter As StringWriter = New StringWriter(stringbuilder)
Dim xmltextwriter As New Xml.XmlTextWriter(textwriter)
xmltextwriter.Formatting = Xml.Formatting.Indented
'this is the connection to the client
Dim w As New IO.StreamWriter(mobjClient.GetStream)
' the &qu...tcp-ip configuration
How can I found if a tcp\ip is install in my computer???
How can I read the tcp\ip properties?
How can I change them???
What I need is to change the Internet Protocol(TCP\IP) property install on
my computer network connection from "obtain an ip address automatically" to
"use the following ip address" and set ip number and subnet mask, I need to
do that from my mfc application, there is an mfc class for that or some
Can you send me any code example?
I think you can call GetTcpStatistics() to find out if it is available or
not. ...how to detect TCP disconnects
I am using winsock api. When a client disconnects her socket, how can we
detect in the server to re-connect to the client once connected. Is there
any api function.
> Hi All,
> I am using winsock api. When a client disconnects her socket, how can we
> detect in the server to re-connect to the client once connected. Is there
> any api function.
Thank you very much.
"Sreeram" <email@example.com> w...read from TCP/IP socket with blocking
So, I currently have code for reading in TCP/IP messages that looks
something like this:
StreamReader reader = new StreamReader(new NetworkStream(mySocket)));
string inputString = reader.ReadLine();
This is one thread in my application, and as it is a non-blocking
infinite loop, it is causing my application to consume 100% of my
Is there a simple method of rewriting this to cause it to block when
there's nothing else to read? (thereby freeing up CPU)
I attempted to use StreamReader.ReadBlock(), but then rea...XmlTextReader TCP Socket
This is repost from dotnet.general, I have only just found this forum.
I am writting a Jabber-esque client-server application and have run into an
issue with the XmlTextReader constructor when passing a NetworkStream - It
hangs forever, apparently this is an issue with SP1.
Anyway I have the code below as a work around (using bool keepalives as it
must run on the CF). I realise there is refactoring to do, as I said this
was a quick and dirty workaround but the question holds.
I am concerned that a very large file coming in very slowly could be a
problem. Could this code empty the
u...TCP Send with Response
I have to send a TCP stream to a device. The device returns a response and
I cannot figure out how to catch the response. I know the device response
properly because if I connect to it using HyperTerminal I can send the
command and immediately the response is displayed back to me in
HyperTerminal. Now I need to do this programmatically. The send portion of
the code below works because the device response properly but for some
reason I'm unable to catch the response. I've looked through MANY examples
online and they all seem to look like this code block.
Please he...Block TCP 25 to CLient Computers NOT WORKING
SBS 2003 R2 , 2 NICs, ISA Installed...
I need to close port 25 on all client computers and followed this article
I created the policy and while testing it from my Windows 7 client machine /
Windows Live Mail ... I could send out mail without any issues..!?
Is this correct? I was under the impression it would block outbound 25 on
Thanks for all the help
Since you have it why not use ISA to block port 25 outbound from the
"Daniel Jewel" <cyber...Exhcnage 2003 TCP port requirement
I have all these ports opened on the firewall, and still am unable to get
mails on my Exchange Server.
But when i open all the ports for TCP on firewall, i get emails ... can any
one help me if i need more ports
...Debug assertion failed trying to CAsyncSocket::Connect()
I have a client (locally) trying to connect to a server locally.
If i connect (using CAsyncSocket::Connect()) with the IP that IPconfig
gives, i get a debug assertion failed. After pressing the RETRY button
on the debug assertion failed dialog the source goes to :
* If this ASSERT fails, a bad pointer has been passed in. It
* totally bogus, or it may have been allocated from another
* The pointer MUST come from the 'local' heap.
If i connect on 127.0.0.1 e...Large TCP packet size. #2
My programs have always used relatively small sized TCP packets. I am now
considering using a packet that is about 75,000 bytes long.
Is that to long?
> My programs have always used relatively small sized TCP packets. I am now
> considering using a packet that is about 75,000 bytes long.
> Is that to long?
It will probably make no difference. Your calls only affect a local
buffer size, not the actual network packet size.
Scott McPhillips [VC++ MVP]
It would have made sense, if he tried to increase the tcp window size.