Skip to main content

All Questions

Tagged with
3 votes
3 answers
1k views

How does HTTP Keepalive handle multiple requests along with EOF from same origin?

says a client has multiple files to post to a server via HTTP Post method, there will be two api calls. since I don't want to create two TCP connections and I want to reuse TCP connection, so I use ...
user22155685's user avatar
0 votes
1 answer
242 views

How is an IP address assigned to a process in TCP?

When TCP connection is established between two sockets, suppose that there are multiple NICs in the computer, so which IP address will the socket bind [ or - which IP address will be passes into bind()...
Gagan Walia's user avatar
0 votes
1 answer
995 views

Meaning of IPTABLE duplicate values

I'm new to IPTABLES and when I execute the following command /sbin/iptables --list -n | grep 16381 I could see multiple entries as shown below : ACCEPT tcp -- a.b.c.d 0.0.0.0/0 ...
Jayaram18's user avatar
0 votes
1 answer
535 views

How can I identity which process is sending data to a certain host on Linux?

As per title, I want to figure out the process responsible for certain traffic. I can see the traffic in wireshark, but I don't know which process it is. Is there any straightforward way to do it? I'm ...
Denver123's user avatar
-2 votes
1 answer
236 views

How to investigate why a computer stops a TCP connection?

I've just written this question on another StackExchange site, but I was advised to ask the same question here. I would like to broaden the question: how can I know why a host closes a TCP socket ...
Dominique's user avatar
  • 2,281
0 votes
1 answer
739 views

Address of a Transport layer?

In TCP/IP protocol stack following protocol level addresses exists: Data Link layer - MAC address Network layer - IP address Transport layer - ? Application layer - Socket address which is ...
AJ HUNTER's user avatar
1 vote
0 answers
50 views

TCP server device for USB access readers

I have a BarCode reader that spits out data over a Virtual COM port (RS232 Serial) through a USB cable. I have a server running and managing a facility, and I need to read data coming off the BarCode ...
Aman's user avatar
  • 11
0 votes
3 answers
583 views

Connect a socket to another PC in same NAT

Hey I've got two machines on the same network. They get their IP info back from an external webserver. Same IP due to NAT but different ports locally. Hmm that's weird.. they can't socket up or even ...
Andy's user avatar
  • 11
2 votes
0 answers
2k views

WebSocket connections originating from local network all use same client-side port (instead of ephemeral) when connecting to local webserver - Why?

I set up a webserver on a virtual machine on my home desktop. I have my router forward several ports (80, 443, etc) to my desktop, when then forwards them via NAT to the virtual machine (see diagram ...
SAlsum's user avatar
  • 21
0 votes
1 answer
4k views

Increase buffer size for a specific socket on Linux

I am using CentOS7 and I have to increase the send buffer size (SO_SNDBUF) on a socket listening on a specific port. The application that has the port opened does not natively support this. Few things ...
Derrick Crash's user avatar
1 vote
0 answers
45 views

understand ss -to4 output for a jdbc connection

My application connects to a database over JDBC, and performs a lot of sequential inserts. There is only 1 JDBC connection opened by the application. As the performance is not as expected, I started ...
iGnite007's user avatar
4 votes
1 answer
5k views

How can I know what is preventing my socket to bind to localhost:50060-50959

I am using this Python code to listen to a port on my Windows 10 system: import socket for port in (50059, 50060, 50959, 50960): try: print(socket.socket(socket.AF_INET, socket.SOCK_STREAM)....
bers's user avatar
  • 1,728
2 votes
0 answers
303 views

How can I use the "location of socket in memory" field in /proc/net/tcp

I'm working on a proxy for linux(C++) that, amongst other functions, keeps track of tcp connections and associates them with the process's pid. To do that, I get the inode in /proc/net/tcp and then ...
Tiberiu Hodorogea's user avatar
1 vote
1 answer
1k views

Checking Nagle Algorithm on opened socket

One of the platforms we use opens TCP sockets (No source code available). I need to check if the Nagle Algorithm is disabled or enabled on those sockets. The operating system used can be Windows or ...
Medhat Hussain's user avatar
0 votes
0 answers
384 views

Why is my TCP connection attempt via PHP acting weird?

I'm not sure if this is better here or on SO but since the issue isn't in the programming I figured it applies here (or on U&L or on serverfault, but I guess/hope I'm fine on here). I want to ...
confetti's user avatar
  • 2,495

15 30 50 per page