It is a female fitting which screwsonto the tank (thread protrudes from tank) using the large nut on the petcock to attach and seal the o-ring. Be sure your old one has the out pipe to the right. (there is a left version but it has a different thread. ).
eBay