The present invention provides a socket compatible with multiple types of plugs having front end portions varying in length and a pipe connector having this socket. The socket 10 of the present invention mainly includes a base portion 18, first steel balls 22 and second steel balls 24 housed in housing holes of the base portion 18, an outer support portion 26 supporting the first steel balls 22 and the like from the outer side, and an inner support portion 25 supporting the first steel balls 22 and the like from the inner side. The socket 10 includes first housing holes 50 in which the first steel balls 22 are housed and second housing holes 52 in which the second steel balls 24 are housed and which are longer than the first housing holes 50 in an axial direction.