2,553 questions
0
votes
1
answer
4k
views
trying to connect to TCP server using Node.js
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,...
0
votes
1
answer
72
views
C++ Explicitly using a function from an included headerfile in omnet++
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 ...
0
votes
1
answer
2k
views
powershell TCPclient timeout per connection try
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....
0
votes
0
answers
73
views
Why isn't this c client able to read data sent by this c server if the latter calls the write system call twice?
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 :
#...
-1
votes
1
answer
72
views
Why would console display different received string than message box in c#?
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 ...
0
votes
1
answer
116
views
Client Socket refusing connection and event manager is saying 'Failed to determine the https port for redirect'?
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 ...
-2
votes
1
answer
223
views
c#, tcp client does not work as intended (too slow?)
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 ...
0
votes
0
answers
96
views
TCP response breaks after 1460bytes
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 ...
0
votes
1
answer
90
views
Why TCPClient doesn't receive text data
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 = ...
0
votes
0
answers
268
views
Can I manually make tcp zero window and drop?
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 ...
1
vote
0
answers
231
views
How redirect packets UDP ASSOCIATE via socks5
TCP can redirect but UDP not working, Please help.
TCP get from ip:port destination
UDP get from ip:port endpoit
0
votes
1
answer
467
views
TcpClient giving errors at thread execute at connect and write
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 ...
0
votes
0
answers
46
views
Can't transfer data from cross-pc using TCP
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>
...
0
votes
1
answer
836
views
How to pack and unpack the structure of this tcp client
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 ...
0
votes
0
answers
58
views
TCP : reverse echo client throws an error message on Linux (written in C )
Already have the server running on the another terminal.
Would this be an issue with Linux?
Echo error message on the client terminal:
0
votes
1
answer
1k
views
How I can receive data for ever from TCP server
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 ...
0
votes
2
answers
812
views
Identify start and end of Data received by TCPClient and get complete data packet C#
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 ...
0
votes
1
answer
860
views
How to connect plc with eternet port?
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 ...
1
vote
0
answers
195
views
Fetching messages stored on Python's socketserver.TCPServer via sock.recv() call
I have the following simplified project structure:
tcp-test-project/
|
+-- server.py
+-- client.py
server.py contains the following:
from socketserver import ThreadingTCPServer, StreamRequestHandler
...
-1
votes
1
answer
178
views
TCP: send a data of 'unsigned int' type from a server to a client which receives this data in a 'float' type?
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 ...
0
votes
1
answer
816
views
Recieving TCP socket data by buffer
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 ...
0
votes
1
answer
1k
views
Wait for NetworkStream to Finish Sending Data before Closing It
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 ...
1
vote
2
answers
2k
views
HTTP Client to TCP Server (C#)
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 :
...
0
votes
1
answer
783
views
Why does my socket read lock the write of the data?
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 ~...
0
votes
1
answer
59
views
Httpwebrequest(client writemode) to TCPclient(Server Readmode) Approach
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 ...
0
votes
0
answers
59
views
Client that writes to Server tcpmodel
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 ...
0
votes
1
answer
140
views
c# TCP/IP client is connected to internet or not
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 .
0
votes
1
answer
389
views
Read data written by HttpWebrequest connected to tcplistener via tcpclient c#
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 ...
0
votes
0
answers
101
views
Communicate across two Client and one listener (3 separate process) c#
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 ...
0
votes
1
answer
1k
views
How to route TCP trafic through TOR using .NET / C#
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....
0
votes
0
answers
40
views
Sendign a file over TCP connection
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 ...
0
votes
0
answers
170
views
Xamarin Form TcpConnection using wifi not working when mobile data enabled
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,...
0
votes
0
answers
342
views
Client not seing the buffer sent by a TCP server in netty
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 ...
1
vote
1
answer
81
views
C++ client socket sends original file and file size, Java client always get 8 bytes more. Even after force limiting to -8 bytes file is unreadable
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 ...
1
vote
1
answer
595
views
can i check a tcpclient is disposed or not in tcp ip in c#
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 ...
0
votes
0
answers
176
views
Using socket to cmmunicate node app to c# service
[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 ...
0
votes
0
answers
109
views
TcpClient NetworkStream gets stuck until TcpClient closed
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 ...
0
votes
0
answers
1k
views
Should I check TcpClient connect status with Poll or Writing zero bytes?
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 ...
0
votes
1
answer
1k
views
How to Fetch Webpage Through TCP socket using HTTP Request in JAVA
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....
0
votes
1
answer
138
views
c# make UI calls when TCPClient receives data async
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 ...
0
votes
0
answers
142
views
C++ multithreaded test harness cannot verify responses without use of mutex lock around request
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 ...
0
votes
0
answers
217
views
How do online applications register ports for connection?
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 ...
-1
votes
1
answer
158
views
Connecting to two server from client in qt
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.
1
vote
2
answers
2k
views
Terribly slow performance of TCPClient
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 ...
0
votes
0
answers
114
views
Send data to multiple tcp clients at once
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 ...
0
votes
1
answer
210
views
I can't figure out why recv isn't saving to a buffer
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 ...
0
votes
1
answer
246
views
How do you close threads handling TCP requests without closing the TCP connection?
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 ...
0
votes
1
answer
31
views
Why must I use default TcpClient to connect to server?
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 ...
0
votes
1
answer
160
views
How to tell the difference between two clients?
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 ...
0
votes
1
answer
711
views
C# - How to know how many bytes are left in TcpClient after perform SslStream.Read
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 ...