When you are feeling lonely, it is because something has triggered a memory of that feeling, not because you are in fact, isolated and alone. The brain is designed to pay attention to pain and danger, and that includes painful scary feelings; therefore loneliness gets our attention.
But then the brain tries to make sense of the feeling. Why am I feeling this way? Is it because nobody loves me? Because I am a loser? Because they are all mean? Theories about why you are feeling lonely can become confused with facts. Then it becomes a bigger problem so just realize that you are having this feeling and accept it without over reacting.
– Brock Hansen