.NET Framework class, providing client connections for TCP network services.
Questions tagged [tcpclient]
2541 questions
0
votes
0 answers
Getting "Socket in use" error after closing socket and restarting application
I am running into an issue with my TCP sockets where they are not closing, even after apparently closing them gracefully.
There are time where my application will need to be restarted, and in the process of it being restarted I encounter the error,…

Jesse Scott
- 1
- 3
0
votes
1 answer
System.IO.IOException at TCP/IP Connection
i´m having a problem with my TCP/IP Server/Client Connection:
On server start:
{
serverSocket = new TcpListener(IPAddress.Parse(ipServer), portServer);
serverSocket.Start();
TcpClient clientSocket = default(TcpClient);
…

Murf
- 113
- 1
- 12
0
votes
1 answer
Tcp-Listener Doesnt Always Catch Connections
So the problem I'm having is sometimes I start it and it doesnt detect the client connecting but other times i start it, it works fine no issues. For whatever reason I get more success building it in release mode than I do when i run it in debug…

Kevin
- 3
- 2
0
votes
0 answers
How to read web response
I am not being able to read the source of a site via Tcp Client.
Please don't tell me you can read the source via httpwebrequest, webclient or http client - I do not want to use those methods.
I can read the headers response, but I can't read html…

Killer
- 1
- 1
0
votes
1 answer
C# Tcp BeginAcceptTcpClient throws ObjectDisposedException
I'm trying to upgrade from UDP to TCP, but I am completely lost. :(
This is my Server code (not too long).
private readonly TcpListener _tcpListener;
public TCP(IPEndPoint endPoint)
{
try
{
_tcpListener = new…

Aldabeth
- 63
- 5
0
votes
1 answer
Facing problem regarding SwiftSocket library version in Projects in Xcode. How to mitigate the problem?
I am trying to utilise the library SwiftSocket. I have followed the steps given in:
https://learnappmaking.com/cocoapods-playground-how-to/
Then I open the project by clicking on Garbage management.xcworkspace. I get the following message:
How to…

Sayantan4796
- 169
- 1
- 10
0
votes
0 answers
Java DataInputStream readAllBytes empty?
I have a TCP Client and Server in Java and want to send a byte array from the Client to the Server. Im sending the bytes using this method:
public void writeBytes(byte[] message, Socket socket) throws IOException {
DataOutputStream out =…

ljoedicke
- 37
- 7
0
votes
1 answer
Python 3: Parse Server message(TCP)
I wrote a client using the socket module and now I am trying to decode a message I receive from an external TCP Server with the following Code(I know the Package has an 8 byte long header with details such as size in the first 2 bytes. After the…

Wherekonshade
- 3
- 2
0
votes
1 answer
C# TCPClient SocketError 10051 during read operation. Adapters IP is empty
I have an application which uses the TCPClient to connect to a TCPServer and exchange data every 300ms. The application and connections works as expected. I tested the connection for 2 days and is runs all the time without any errors. Today I got an…

Nelf
- 19
- 5
0
votes
1 answer
C# Winforms using TcpListener I can't connect to server from other devices on my LAN
I have a Winforms application that's going to transfers data to an Android application, for now it accepts a connection and displays a line of text as output. I tested on my local machine using the telnet command in PowerShell and it returns the…

Thegan Govender
- 35
- 6
0
votes
1 answer
Authentication on a very low level TCP Server written for Node.JS?
How do I implement something similar to the HTTP Basic authentication, in a TCP server written for Node.JS ? The code for a basic TCP server is the following:
// Load the net module to create a tcp server.
var net = require('net');
// Setup a tcp…

João Pinto Jerónimo
- 9,586
- 15
- 62
- 86
0
votes
0 answers
Async TcpClient method
i need getting some advices, which method is better for creating an async tcpClient connection.
My application opens tcpClient,writing a message and waits to read an answer.
Method 1, i have create an async task for all tcpClient function.
await…

DmO
- 357
- 2
- 14
0
votes
0 answers
Just the mention of or makes gcc spit out an x86 error in compilation, what's this?
I'm fairly certain I'm doing something stupid.
But even so, I'm getting this compile error when compiling a very basic c++ script that connects to a node.js server using TCP. It crashes when there just the mention of a string being used --…

TomOnderwater
- 11
- 3
0
votes
1 answer
Continuous data transmission between UI Thread and Worker thread running TCP Client
I have an app (Android Studio) that continuously generates data (Joystick coordinates) based on the user touch, that I want to stream continuously to my NodeMCU using Socket programming. I implemented an Async Task to do this on a separate tread.
I…

Shreyas P
- 1
- 2
0
votes
1 answer
Reconnect TcpClient to Server if it crashes
I am trying to make a Steam Like friends Client ...
I can connect to a server, but how do I Reconnect, if the server crashes ...
and continue reconnecting until the server starts again ...
public void ConnectToUserServer()
{
…

dwk
- 69
- 1
- 9