A computer network consists of six computers. Each computer is directly connected to zero or more of the other computers.
Show that there are at least two computers in the network that are directly connected to the same number of other computers.
I have figured out that two computers cannot have 0 and 5 connections simultaneously but I cannot go forward from there.
We can again use contradiction. You already found out that if there is a computer that is not connected to any other then other computers can have at most $4$ connections. If a computer is connected to $5$ computers then there is no computer with $0$ connection.
So you have number of direct connections for each computer between $0$ to $4$ or between $1$ to $5$. These are $5$ numbers but you have $6$ computers. So at least two of them have the same number of direct connections.