Questions tagged [tcp]
Transmission Control Protocol (TCP) is a transport layer protocol that provides a connection-oriented data stream service with delivery that is guaranteed to be in-order.
23,256
questions
0
votes
0
answers
6
views
How LWIP configures multiple servers with different IPs to connect?
#define DEST_IP_ADDR0 192
#define DEST_IP_ADDR1 168
#define DEST_IP_ADDR2 0
#define DEST_IP_ADDR3 200
IP4_ADDR(&server_ip, DEST_IP_ADDR0,DEST_IP_ADDR1,DEST_IP_ADDR2,...
0
votes
1
answer
9
views
Will browser establish new TCP connection when being redirected from http to https?
If client/browser trying to access http via 80, most likely it will be redirected to https/443 due to server configuration.
Will browser actually automatically establish new connection to port 443 or ...
0
votes
0
answers
13
views
Netty tcp server how to get real ip when I use LVS-TUN
My Netty Tcp Server use LVS-TUN mode, when Tcp Client connected, but remoteAddress is VIP, how to get CIP?
((InetSocketAddress)ctx.channel().remoteAddress()).getAddress().getHostAddress();
0
votes
0
answers
16
views
Unable to run client server application on remote computer c++
In a typical client server app that takes a port number as an argument (server) and port number and IP (client) as arguments.
Assume cat is the server and dog is the client
Why would it be that when ...
0
votes
1
answer
13
views
Connection reset by peer error showing despite using try
I have a server like this:
HOST = "127.0.0.1"
PORT = 6000
try:
s= socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((HOST, PORT))
s.listen()
conn, addr = s.accept()...
1
vote
1
answer
24
views
How to send tcp packets using raw sockets in winsock?
I'm trying to make a client which can send custom packets to a server using raw sockets. I've had success with udp packets but when I try to switch to tcp ones, wireshark doesnt catch anything.
I have ...
0
votes
0
answers
21
views
Is tokio rust resetting tcp connections?
I am writing a simple server in rust to understand a bit better async tokyo and tcp connections, there are fifty connections and first they write a hello and then they read, and it seems to work fine ...
1
vote
0
answers
15
views
How to receive both json format and binary data successively from a TCP/IP socket?
I have a protocol that if a json message has a top-level key called "the_key", then after the json message, a binary data set will be transmitted. An example of the protocol is as follows:
...
0
votes
1
answer
22
views
Capture port information on iSeries programmically
Currently we receive on port 9020 from a client. That client uses port switching on their end and sometimes we wind up with multiple "Established" connections on the one port - all with ...
0
votes
0
answers
8
views
Socket develop in two language [closed]
I want to develop socket programming and especially servers on python as well as the client in c.
I need to use this program in a Unix board.
0
votes
1
answer
13
views
I am unable to run nc -lk <port number> on my Mac. What is the replacement? Tying to run a word count program, a simple pyspark streaming application
So I have taken this code off the internet from a GitHub source
https://github.com/tirthajyoti/Spark-with-Python/blob/master/Python-and-Spark-for-Big-Data-master/Spark%20Streaming/Introduction%20to%...
-2
votes
0
answers
11
views
Passing packets with tcpdump on server linux
I only see incoming packets wnen I send a get request with an IP address (xx.xxx.xx.xx). But when I send a get request with the hostname, I get ERR_CONNECTION_REFUSED in my browser and I don't see ...
0
votes
1
answer
23
views
QUIC-Transfer Protocol need not TLS?
If I need't a secure data.
Can I use TLS without QUIC? Why must use TLS with QUIC?
Thanks.
0
votes
0
answers
14
views
Nginx Controller Connection Timeout With Upstream TCP Container
Currently working on a set up where I am trying to connect my On prem application with application hosted on AWS EKS via Network Load Balancer in front of Nginx Ingress Controller. Applications at On ...
0
votes
0
answers
7
views
TCP congwin vs SSthresh
Let's say ssthresh == 12 units
and congwin at time0 == 1 unit
I know congwin grows exponentially (powers of 2)
until ssthresh value is surpassed/reached
but at the moment congwin == 8.
will it will ...
0
votes
1
answer
29
views
My program throws An existing connection was forcibly closed by the remote host exception
I have written a little program that takes one udp address and sends the data to a tcp address instead. When i run the program in CMD and taking the two addresses i get an error.
Here is the code:
...
-1
votes
2
answers
29
views
Bitwise invert a string and send it to a socket
how would I invert the bits for a given alphanumeric string and pass it to a socket function?
s = '1q2w3e4r'
stbin = ''
#String to binary
stbin = ''.join(format(ord(x), 'b') for x in s)
#Bitwise ...
-3
votes
0
answers
29
views
Can I calculate packet rate for all IP addresses at server [closed]
I am trying to determine the pps value for all the IP addresses hitting my server. Idea I have in mind is keeping a data structure to store number of packets received by each IP address in say last 10 ...
0
votes
1
answer
32
views
Get CURL Easy response content-type
I am using the curl::easy::Easy crate in Rust to get data from HTTP.
I would like to know how I can get the content-type of the response as the documentation is not clear for me even when I set ...
0
votes
0
answers
53
views
How to communicate to a device via TCP/IP in Python?
I have an Agilent (Keysight) E4980A LCR meter. If I install the Keysight IO Libraries suite I can connect to the device. This means, at least I have the right LAN (cross-over!) cable.
If I send the ...
0
votes
0
answers
8
views
Multiple devices issue in tcpip
I'm using termux in Android
I connect my using tcpip
I can't excute command reason show multiple devices connected
adb devices
List of devices attached
emulator-5554 device
-1
votes
1
answer
25
views
Sending multiple HL7 messages using Jmeter TCP Sampler [closed]
I have got a requirement to send multiple HL7 message to the server. I know that I can use Jmeter TCP sampler for sending HL7 but in my case the count is more than 1000 and I am not sure how to send ...
-1
votes
0
answers
25
views
What the protocols support OOB Data? [closed]
I'm describing the process of working with OOB data and need some examples.
I searched on the Internet, but there is not much information about this.
What the protocols, except TCP, support Out of ...
0
votes
1
answer
25
views
Handling TCP when handshake is not finished in .NET
Suppose I have a running .NET server with a TcpListener server accepting clients. How should I handle non responding clients?
NetworkStream has the ReadTimeout and WriteTimeout that seem very useful, ...
0
votes
0
answers
24
views
How to manage UDP Message Forwarding with 2 Clients and 1 Server in Language C?
i am trying to implement 1 "Server" (broker) and 2 "Clients" in C with UDP Sockets. But i cant get it to work.
What is my Goal:
One of the clients (CLIENT A) can send a word to the ...
0
votes
1
answer
32
views
How can a TCP/IP server write data on a HTTP server?
Here is my tcp/ip server that listens to IoT sensors sending it data:
const net = require('net')
const server = net.createServer(socket => {
socket.on('data', data => {
console.log(...
1
vote
1
answer
27
views
tcp ip client read received data c#
TcpClient client = new(SERVER_IP, PORT_NO);
NetworkStream stream = client.GetStream();
stream.Write(WriteArry, 0, WriteArry.Length);
byte[] data = new byte[10];
...
-2
votes
0
answers
32
views
Creating server-client bidirectional connection using socket programming
I am learning socket programming in C.
I have made a server-client connection. Currently, it supports messages from one side at a time. I want to send multiple messages from one side without waiting ...
-2
votes
1
answer
25
views
Client is not sending ACK in response to server's FIN ACK in Python
I am using the socket library in python and to connect to a server. After connecting, the server will automatically transmit packets and then terminate the connection. I am having issues completing ...
1
vote
1
answer
19
views
How to check if the tcp socket is still connected in Flutter?
I have connected to my server as follows:
Socket socket = await Socket.connect('xxx', xxx)
But now I want to check if the socket is still connected. It would be even better if I have a listener that ...
0
votes
0
answers
32
views
How do I detect a TCP connection that didn't close properly in a linux platform?
I am using the '/proc/net/tcp' file to follow the TCP connections in my machine and want to know if at some point one of these connections didn't close properly because some network error. Is there a ...
-2
votes
0
answers
38
views
hello, I'm dealing with tcp ip, I'm new, the code link I referenced [closed]
I made a project by referencing the tcp ip project in the link.
I have server - client - android client (MIT app inventor) projects but i am having some problems:
The data sent from the server does ...
0
votes
0
answers
16
views
why should I call socket.end method in nodejs if I want to get response in google chrome or Safari?
I write a server program with nodejs http module, somthing like this:
const http = require('http')
const server = http.createServer()
server.listen(4433)
server.on('request', (req, res) => {
...
0
votes
0
answers
27
views
What causes a server to close a TCP/IP connection abruptly with a Reset (RST Flag)?
TL;DR
For quite some time we are facing a weird issue with all of our systems (including Prod!). On a regular basis the TCP-connection to the server is closed abruptly by the server (or to be exact on ...
0
votes
1
answer
36
views
Handling server sending a lot of messages to a client
I am sending a lot of messages one after another in a loop with TcpClient and sometimes I seem to get all of the messages and sometimes only 1. When I send only one message it works correctly. It only ...
0
votes
0
answers
27
views
GraphQL: Subscriptions vs periodic querying to be up to date without refresh?
Imagine that we want to serve a web application to thousands of users. The information on the page should stay up to date even if the user does not actively refresh the page. At the moment, we have ...
0
votes
1
answer
47
views
Winsock program causing port exhaustion
Going off a different post that helped explain the source of the symptoms of my issue: https://superuser.com/questions/1348102/windows-10-ephemeral-port-exhaustion-but-netstat-says-otherwise
I am ...
0
votes
0
answers
16
views
Python permanent and encrypted reverse shell
I'm wondering how to create a permanent backdoor on the system with just a one-time running. In addition, when trying to establish a direct connection, Firewalls notice and block it. So I want to ...
0
votes
0
answers
15
views
Wireshark not receiving Certificate packet from server
I'm using Wireshark to analyse network traffic for a TLS request. I can filter the request based on the website IP address and I can see things like TCP session setup (3-way handshake), client hello, ...
0
votes
1
answer
18
views
Windows Server Does Not Send IP Packet If Source IP Not Bound To The Sending NIC
I am constructing an ip-ip tunnel between remote linux server and the local windows server.
The windows server does not support raw ip-ip tunnel so I develop a simple app which makes usage of wintun.
...
0
votes
1
answer
22
views
KeyError during Multithreading
I am currently programming a server that accepts multiple clients, creates a thread for each client and passes them all through a function handle_client. I am creating a list of every client that ...
1
vote
1
answer
62
views
Writing directly to socket vs to buffer
I have seen multiple applications write their data first to buffer, then writing that buffer to socket and not just directly to socket.
I have two questions:
Why is that?
If writing straight to ...
0
votes
1
answer
45
views
How to pass elements of a list as arguments for a thread in python
I am currently programming a server that accepts multiple clients, creates a thread for each client and passes them all through the same function handle_client. I am creating a list of every client ...
-1
votes
1
answer
46
views
Reading and writing to TcpStream Buffer in parallel
When i run program and connect sockets it just waiting for me typing and doesn't display any messages. When one of sockets disconnecting program on another pc just writing "from the sender:" ...
-1
votes
0
answers
30
views
bind: Permission denied : implementing a server in ubuntu
I'm trying to follow this boost document now.
https://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio/tutorial/tutdaytime2.html
But it responds "bind: Permission denied" after I try to run ...
0
votes
1
answer
31
views
Is it normal for TCP request to randomly "get lost in the internet"?
I created and manage a SOAP API built in ASP.NET ASMX. The API processes about 10,000 requests per day. Most days, about 3 request sent by the client (we only have 1 client) do not reach the web ...
0
votes
1
answer
31
views
BitTorrent client implementation – Peer ignoring requests
I am implementing a bittorrent client to learn that protocol and practice code, in Elixir.
I am testing my client with Transmission as a seed on a local tracker.
I can successfully handshake ...
0
votes
1
answer
51
views
How can a socket connect when bound to a specific ethernet interface that's also being used by VPN / utun interface?
I'm trying to write a function that can connect to a server using a specific network interface so that it's consistently routed through that interface's gateway. This is on a macOS system that has one ...
1
vote
0
answers
22
views
How php-fpm container communicates with nginx on host?
I have installed nginx, php and php-fpm on server and my website is working fine. I am trying to containerise only php files. It should be in a way that nginx should stop communicating with my host ...
0
votes
0
answers
22
views
Dynamic TcpClients receive data
i am creating application for communicate with screwdriver controllers thru TCP protocol. Main form dynamically creating new forms (each form = one screwdriver controller) which working fine, also ...