Problem is, I couldnt find a pipe loose anywhere for me to reconnect this to, so I'm confused on how to find this pipe or if there should even be a pipe at all. Or, if the water is coming out of a place its not supposed to, let me know. As well as this, there's a part in the engine bay with some condensation which I assume is from the air conditioning, the knob as shown in pic I found could be tightened further, however, I didn't want to touch it in case its some sort of setting. Please if anyone can help me out it would be greatly appreciated, summer sucks without air con.
Note: I didn't actually take anything apart besides pulling up the carpet to drain the water. So if I need to dive further to find this pipe then let me know.
The general position of the pipe where water is coming out of is shown here

This is the part where the water is dripping out of

Is that what I need to connect it back to?

Engine bay, where the knob for me to tighten is

As you can see there is condensation here too
