The gut-brain connection refers to the communication between the brain and the enteric nervous system.
The gut-brain connection works in both directions. That means a troubled intestine can send signals to the brain, just as a troubled brain can send signals to the gut.