UDP vs TCP, how much faster is it?

UDP is faster than TCP, and the simple reason is because its non-existent acknowledge packet (ACK) that permits a continuous packet stream, instead of TCP that acknowledges a set of packets, calculated by using the TCP window size and round-trip time (RTT). For more information, I recommend the simple, but very comprehensible Skullbox explanation (TCP … Read more

Does TCP send a SYN/ACK on every packet or only on the first connection?

It’s kinda like: SYN starts a connection; you’ll usually only see it when the connection’s being established. But all data being sent via TCP requires an ACK. Every byte sent must be accounted for, or it will be retransmitted (or the connection reset (closed), in severe cases). Actual connections aren’t usually exactly like the diagram above, though, … Read more

How can you find out which process is listening on a TCP or UDP port on Windows?

New answer, powershell TCP UDP Old answer, cmd (Add -n to stop it trying to resolve hostnames, which will make it a lot faster.) Note Dane’s recommendation for TCPView. It looks very useful! -a Displays all connections and listening ports. -b Displays the executable involved in creating each connection or listening port. In some cases well-known executables host multiple independent … Read more

java.net.ConnectException: Connection refused

This exception means that there is no service listening on the IP/port you are trying to connect to: You are trying to connect to the wrong IP/Host or port. You have not started your server. Your server is not listening for connections. On Windows servers, the listen backlog queue is full.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)