"Loneliness is not the enemy, here, however. When we are lonely, it is a signal that we are alive. God created us with the drive to connect and be attached to himself and others. It is a good thing, because loneliness ultimately leads us to relationships, and that is where God wants all of us. We are all members of one body (Ephesians 4:25)." --Cloud & Townsend (emphasis mine)
--and "as members of one body you were called to peace" (Colossians 3:15). The cure to loneliness is not one person, but a community, membership in Christ's body, which is ruled and united by peace. But while loneliness plagues us, it is comforting to consider that loneliness is a sign of life. A person whose heart was completely closed off wouldn't even be capable of feeling lonely. To have pain is to be capable of feeling, to be alive.