Threads joints should be fixed applying red lead, white lead, dry point etc. in the threads, bound the pipe threads using twine and tightened them fully with a suitable wrench.
Flanged joint should be fixed using a washer of rubber, leather, card board or soft metal in metal in between the inner sides of both the flanges.