.NET Framework class, providing client connections for TCP network services.
Questions tagged [tcpclient]
2541 questions
0
votes
1 answer
Send a file from the server to client with Indy
I have two programs, one for the server and another for the client.
The server sends a file to the client. In the client, I use the TIdTCPClient, TIdThreadComponent, and TIdAntiFreeze components.
The file is well created, but the thread never…

GB74
- 11
- 2
0
votes
1 answer
How to find which TcpClient had send a message in C#
I created a system to connect a series of TcpClient to a TcpListener and exchange data in a chat-like system. Once the connection is established, the server adds the client to a List, and starts reading the stream waiting for messages.
Once the…

Enrico Calzolai
- 1
- 1
0
votes
1 answer
C# Multithreading Clients Duplicate Connection/Data Loss
I am having a weird problem where I am making a chat connection with TCPListeners and sockets. For some reason when a client "connects" to the server it will show they have connected twice. Also what is weird once all of the users have connected I…

SetupG
- 155
- 2
- 11
0
votes
1 answer
TCP client receive data as whole srting in TCP Client node.js
I was send data from Arduino server to my node.js client, when I receive it , I am not getting it as a whole String but instead as chars, in my console I got something like this
Received: h
Received: e
Received: l
Received: l
Received: o
Instead of…

Vincent Valenzuela
- 17
- 1
0
votes
2 answers
Why is the default value of the TCPClient's ReceiveBufferSize is 8192?
According to the MSDN docs the ReceiveBufferSize defaults to 8192.
I checked and it's not a result of a power of two which makes sense when using buffers.
Is there a special reason? Maybe due to the fact that there is some extra overhead with TCP?

the_drow
- 18,571
- 25
- 126
- 193
0
votes
1 answer
Is an open TCP Port in C# secure?
I am sorry, this is kind of a noob question, but I don't get how ports work.
I think that when I open a tcp port in C# via the TcpListener on the server, anyone can connect to it. However, I only want my application client to connect to the port and…

pgr4567
- 73
- 1
- 10
0
votes
0 answers
Socket programming receiving TCP data from a software on a different system using python
I am trying to use a software on computer A which sends TCP data blocks to computer B. My client program is on computer B written in python to receive the data blocks. But when I run my code, I get the following error.
OSError: [WinError 10065] A…

Newbie
- 101
- 1
- 2
- 11
0
votes
1 answer
Why has the server stopped responding after a change in source code?
I need to implement HTTP protocol through TCP. I already had a TCP/IP client-server program which had been working absolutely fine.
Now, I have done some minor change in the source code so that it behaves as an HTTP client-server. But, unfortunately…

user366312
- 16,949
- 65
- 235
- 452
0
votes
0 answers
Tcp client Server C#
I work on tcp client and server application. I have found in youtube this code. There are no have problem connection with tcp client and server, when i send to message it repeat infinity messagebox like you:you:you:you:.How can i fix this problem?…

fydil
- 1
- 1
0
votes
1 answer
UWP program not functioning same as Winforms
I recently started writing a program for sending a file from one system to another using the TCPClient protocol and .Net.
The program has a client method and a server method. Client for sending the data and server to receive and build the file at…

obiwanconobi
- 35
- 5
0
votes
1 answer
How convert TCP socket received data in integer using python?
I am working on a python program to receive data from TCP socket. I am successfully able to receive the data in ASCII format. Now I want to view the received values in user readable format or in integer format. How to convert these values in integer…

shantmanu
- 49
- 2
- 12
0
votes
0 answers
Use a Tcp Client in an azure function
I need a small piece of code that will be triggered by an incoming HTTP call. The code will then take this information open a connection to a TCP socket. It will send the data and get a response, close the socket and send a response to the original…

DasDave
- 801
- 1
- 9
- 28
0
votes
1 answer
How to get received Bytes data in Numpy array in Python
I am working on a python program to receive data from TCP socket. I am successfully able to receive the data in bytes format. The required result I need is to receive the output in Numpy array format. Please help me in the below code to receive the…

shantmanu
- 49
- 2
- 12
0
votes
2 answers
How to Specify an IP Address for TcpClient to use
During development, we usually use localhost as the hostname, like the following
Dim serverListener As New TcpClient("localhost", 8585)
I want the user to be able to enter their IP address via a TextBox instead, like
Dim serverListener As New…

kelly
- 11
- 3
0
votes
1 answer
Mule4 support for TCP connection
I am trying to consume .Net WCF APIs over TCP in Mule4, but couldn't able to find any connector.In Mule3 has seperate TCP connector for receiving and sending messages over TCP.
Can any one please help me guiding on how Mule4 would consume messages…

Maddy
- 11
- 1
- 6