Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
4k views

I'm trying to connect to a server/specific port using Node.js, and I don't even get past var net = require('net'); I'm using Node.js v16.15.0. Welcome to Node.js v16.15.0. When I use the command above,...
user19010771's user avatar
0 votes
1 answer
72 views

I have a question about using the function "send" (which is defined in the headerfile winsock2.h) I included in by omnet++ class "Computer". The function is not found because the ...
Lukas Pfeiffer's user avatar
0 votes
1 answer
2k views

I am trying to create a timeout for a socket in powershell and I have encountered a problem that I do not know how to solve even after many hours of Google searches. $tcp = New-Object System.Net....
Daniel's user avatar
  • 17
0 votes
0 answers
73 views

How come this client is only able to read data sent from the first server write system call ? It correctly reads the data sent by the first write, but not with the second one... Here's the client : #...
user avatar
-1 votes
1 answer
72 views

This is a follow up to my previous question. But it appears that for a reason I don't understand, the os is interpreting a received string differently than a message box is. This is apparent as when ...
Theoneguy's user avatar
0 votes
1 answer
116 views

While connecting with the Server TCP IP Port the Client socket connection code which I have used in ASP.Net Core MVC Action call is giving me Failed to determine the https port for redirect on the IIS ...
Shalabh Mishra's user avatar
-2 votes
1 answer
223 views

I am a beginner when it comes to networking. Even so, I have only programmed as a hobby. It's about a problem that I can't really explain. I have a packetlogger attached to a game this starts a tcp ...
LegendEvent's user avatar
0 votes
0 answers
96 views

Response from one linux server to another linux server breaks after 1460 bytes , checked on server (MTU is default 1500). but why it is happening to few requests only because all responses are more ...
TheMonk's user avatar
0 votes
1 answer
90 views

I have two projects: client and server. Server code: static void Main() { var listener = new TcpListener(System.Net.IPAddress.Loopback, 13000); listener.Start(); using (var client = ...
Иван Силин's user avatar
0 votes
0 answers
268 views

I have to request specific directory repeatedly. ex) https://example.org/home/dir/aaa/11 There is case if http response status code is 200 or else. If 200? read data from raw socket&and if there ...
Http2inc's user avatar
1 vote
0 answers
231 views

TCP can redirect but UDP not working, Please help. TCP get from ip:port destination UDP get from ip:port endpoit
Jinnie's user avatar
  • 19
0 votes
1 answer
467 views

I'm having a problem on a laptop connection to TIdTCPServer. The thing is, it connects fine, sends a command, but when it tries to send it again, it gets socket error 10053 or 10004 or 10054. The same ...
PSDEVS's user avatar
  • 89
0 votes
0 answers
46 views

So I ran my TCP client and server on my own pc, and it worked fine. But when I got my friend to run the client and I ran the server, it came up with Error 10057. TCP Server: #include<WinSock2.h> ...
Coby SMP's user avatar
0 votes
1 answer
836 views

I need help somewhat creating, and mostly packing and unpacking, the structure to be sent back and forth between a client and server. I'm not sure I created the structure correctly, because I'm not ...
cole green's user avatar
0 votes
0 answers
58 views

Already have the server running on the another terminal. Would this be an issue with Linux? Echo error message on the client terminal:
Yeyeye's user avatar
  • 29
0 votes
1 answer
1k views

I try to create TCP client to receive data from TCP server, but after server sending data only I receive data one even if server send many data, and I want to receive data forever, and I don't know ...
Unknown's user avatar
  • 393
0 votes
2 answers
812 views

Hi all i am Writing a prog. to receive the data from static IP and Port i have reached establishing connection to that IP and receiving the data but i am not getting complete data as i need please ...
Rohit Jape's user avatar
0 votes
1 answer
860 views

I have a plc with eternet port. I want to connect between PLC and my PC through TCP/IP. How can it be done ? using (TcpClient client = new TcpClient()) { Console.WriteLine("Attempting to ...
ar.gorgin's user avatar
  • 5,062
1 vote
0 answers
195 views

I have the following simplified project structure: tcp-test-project/ | +-- server.py +-- client.py server.py contains the following: from socketserver import ThreadingTCPServer, StreamRequestHandler ...
Jethro Cao's user avatar
  • 1,070
-1 votes
1 answer
178 views

I know this question is stupid, but I have to solve it. I have a server (written in C) which send a data of unsigned int type. Then I have another client (application written in C#) which receives ...
Triho's user avatar
  • 29
0 votes
1 answer
816 views

Do I have to get data from tcp socket with the buffer size? I know the data packages are divided with \n, so is there any way to get data from the server until I hit \n ? python socket package has ...
Emre Unver's user avatar
0 votes
1 answer
1k views

I am writing a Minecraft Classic Server, and I am having some issues implementing the kick packet. The server is supposed to send the kick packet, and dispose of itself thereafter. The primary issue ...
mike's user avatar
  • 110
1 vote
2 answers
2k views

I am not receiving the Content posted by the HTTPClient but I can read the other information such as Content-Length and other headers. Let me explain the code here: Here is the Server Code : ...
Karthi Jayaprakasam's user avatar
0 votes
1 answer
783 views

I use tokio::net::TcpStream to connect a small TCP server, I write a few bytes and expect to read the response from the server. When I do that with the nc command, it works perfectly [denis@docker-1 ~...
the duck's user avatar
  • 455
0 votes
1 answer
59 views

I am working on sending data across the network with the traditional server-client model. Here Server starts the Tcplistener in a particular address and port. In this case, it is the local host. The ...
Dheena Dayalan's user avatar
0 votes
0 answers
59 views

Hi stackoverflow team, I am creating an application in which I have a server and the client. The server starts the tcplistener. The client connects to the tcplistener and starts writing into the ...
Karthi Jayaprakasam's user avatar
0 votes
1 answer
140 views

can i get client is offline or online in new thread in server side ? it's mean when a client connected to my server i want check in new thread that The client is still online or not .
payam purchi's user avatar
0 votes
1 answer
389 views

I am having a bit of an issue is reading data posted from Client to the Server. To explain the server code I have created a TCP listener and it keeps listening for any client a while loop. ie., via ...
Karthi Jayaprakasam's user avatar
0 votes
0 answers
101 views

SO Members, Let me breakthrough the steps:- 1 ) I have created the TCP Listener in the separate Class that is started. This class will look for possible clients to connect to it. 2 ) I have created a ...
Dheena's user avatar
  • 23
0 votes
1 answer
1k views

I have a custom client-server app, server is configured to run as a hidden service. I can't seem to find anything about how to use TcpClient object or Sockets in C# to access hidden services using Tor....
Andrei Rares Deoanca's user avatar
0 votes
0 answers
40 views

Im trying to send a file over TCP connection and im spected to receive an accio command but, im having trobule doing that, im getting this error:PS C:\Users\mpgm1\PycharmProjects\pythonProject1> py ...
Michael Garrido's user avatar
0 votes
0 answers
170 views

I am writing an application for Android and iOS that read data from a WiFi sensor using System.Net.Sockets.TcpClient try { IPAddress ip = IPAddress.Parse(deviceAddress); _tcpClient.Connect(ip,...
P. Zawadzki's user avatar
0 votes
0 answers
342 views

I have developed in Netty a TCP Server and a TCP client. What I am trying to do is: I create the TCP Client and listen to the port I create the server I listen to the input stream and sends a content ...
Hervé Girod's user avatar
1 vote
1 answer
81 views

For a while, I am troubled with this issue. Using a snippet of C++ code, which I found here, and in my opinion should do a good job actually sending exact amount of data, I guess the problem is in the ...
RadoRadTs's user avatar
1 vote
1 answer
595 views

i want create a server for tcp/ip i have this code : if (myTcpClient.Available == 0) { } when client has disposed i receive this error: System.Object Disposed Exception: 'Cannot access a disposed ...
Taghi Poorchi's user avatar
0 votes
0 answers
176 views

[Sorry for my bad English] Hi! I have to communicate between a node.js application [client side] and c# application [server side]. Each side sends pings to the other, on TCP protocol. I Successed to ...
JudahA's user avatar
  • 91
0 votes
0 answers
109 views

I want to send messages between the server and the client through TcpClient. Here's my code. The client sends "HELLO" to the server, the server prints the message after receiving it, and ...
Mandroid's user avatar
  • 249
0 votes
0 answers
1k views

Is it the right way to detect TcpClient connection closed state, or do I have to write zero bytes? I know it may return true if the sockets is not closed gracefully at the other side. What I need is ...
Mohammad Nikravan's user avatar
0 votes
1 answer
1k views

My college assignment is to fetch a web page from any web server by URL using a TCP socket and HTTP GET request. I am not getting an HTTP/1.0 200 OK response from any server. import java.io....
Obaid's user avatar
  • 3
0 votes
1 answer
138 views

I have a Forms app and a Console server app connected with TCPClient. The Forms app opens up a dialog for user authentication, when user clicks the Login button, a request is sent to the server. The ...
Tsaras's user avatar
  • 493
0 votes
0 answers
142 views

I am attempting to write a test harness to assess the throughput of a TCP server I have also written. Essentially the harness allows you to configure the number of threads you want to use, and then ...
J. Whitehead's user avatar
0 votes
0 answers
217 views

I've been having issues with building applications that communicate online. Currently I am trying to set up a client/server app in C# using TcpClient and the usual problem with port configuration ...
Tsaras's user avatar
  • 493
-1 votes
1 answer
158 views

I need simultaneous persistent connection to two Servers from my Qt TCP client. Do I need threads for this or there is another way. Any Examples would be great.
D_Ranjan's user avatar
1 vote
2 answers
2k views

For learning purposes (I want to get firm grasp on HTTP internals) I'm writing simple HTTP server, which would parse request according to rfc7230-7235 and proxy it to my simple backend server. I'm not ...
Rafał Kopczyński's user avatar
0 votes
0 answers
114 views

I have a tcpserver that can handle an undefined number of tcpclients. Whenever the server needs to send data to all clients I use a loop to iterate through all clients to send the data. I was thinking ...
Martin's user avatar
  • 1,223
0 votes
1 answer
210 views

I am creating a TCP Client that can send messages to the server (using winsock2) and in turn the server sends the message to every other socket, but for some reason it recv() isn't getting the data of ...
Checken's user avatar
  • 13
0 votes
1 answer
246 views

I came across the below thread and wanted to implement having threads for requests not client connections but I am unsure how to do so without closing the connection to the client between each TCP ...
Flypkey's user avatar
  • 13
0 votes
1 answer
31 views

Using the following code, my client fails to connect my server: private static TcpClient client = new TcpClient(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 0)); private static IPEndPoint ...
user avatar
0 votes
1 answer
160 views

I have a client 1 send some data to the server and I want to the server transfer that data to client 2 instead of client 1. Is there any way to tell the server we have to different client sockets, if ...
Ale's user avatar
  • 13
0 votes
1 answer
711 views

I'm doing a client-server app, the server will check when there is data available (TcpClient.Available > 0) to read, but when it runs SslStream.Read, even though I know how many bytes I need to ...
Mancitiss's user avatar

1
3 4
5
6 7
52