1
vote
2answers
50 views

Incoming tcp SYNs possibilities

This might be a general TCP question. Can I receive TCP SYN packet on an established connection OR a connection in TIME_WAIT state? Is is possible?
1
vote
0answers
544 views

MySQL crashes when connecting from localhost with tcp (UNIX sockets work)

I have Ubuntu 12.04 running MySQL server 5.5.24. I can connect with mysql --user root -p. status shows me : ... Connection: Localhost via UNIX socket ... When I try to connect with mysql --host ...
1
vote
1answer
948 views

Waiting until TCP socket is available in bash

Helli, I have a script that waits some time until a machine (being provisioned) comes up and then it connects to ssh and executes something. I use "sleep" for that. I would like change my script to ...
2
votes
2answers
393 views

In Ubuntu, is there something I can run that checks the HTTP requests coming in?

I'm running Node.js. But for some reason, requests are not being caught by the server. (http://stackoverflow.com/questions/9247482/node-js-server-not-receiving-ajax-requests) Is there any way to ...
1
vote
1answer
934 views

socat: Show incoming connections

I am slightly going mad. Even if I call socat like this: socat -vvvv tcp4-listen:9000 tcp4-listen:9001 it works perfectly, but doesn't inform me about incoming TCP connections! Is there an ...
5
votes
4answers
1k views

Automatically-reconnecting TCP tunnel

I have an unreliable network connection between two machines: sometimes active TCP connections get dropped for reasons beyond my control. I want to establish a reliable TCP connection between the two ...
13
votes
4answers
4k views

What is the “slash” after the IP?

In Amazon EC2, where I set "security groups", It says: Source: 0.0.0.0/0 And then it gives an example of: 192.168.2.0/24 What is "/24"? I know what port and IP is.
-3
votes
4answers
24k views

How do I check how many HTTP connections are open currently? [closed]

I want to know how many people are connected to my server. Since I'm doing comet applications, this is important
1
vote
2answers
106 views

Is there a wrapper to restrict an executable so that it can only listen on certain ports?

Is there a wrapper that will prevent an executable from listening on a port? Alternately, is there a wrapper that would remap the port, so that the executable thinks it's listening on 80, but is ...
1
vote
1answer
298 views

TCP failure on Solaris

I recently ran into a problem where a Solaris server could not establish a TCP socket on port 2126. From a packet capture I see this (note: A is a Solaris server, B is a router): A sends SYN to B ...
0
votes
3answers
267 views

In Linux, how do I send packets of a certain size to an IP?

What commands can you run? (must be via the terminal)
6
votes
4answers
2k views

TCP monitoring on a server: comparing netstat vs lsof?

I'm monitoring the TCP stack on a server hoping to generically infer problems with application on the box. My first inclination is to measure the number of sockets in all reported states ...
59
votes
7answers
73k views

How to forcibly close a socket in TIME_WAIT?

I run a particular program on linux which sometimes crashes. If you open it quickly after that, it listens on socket 49201 instead of 49200 as it did the first time. netstat reveals that 49200 is in ...