Loneliness and boredom are not the same thing. Boredom can be fixed with reading a book or doing something you like. It may or may not involve others.
Loneliness becomes a pain deep inside when there is no connection with any other person. Loneliness feels emotional cancer eating away at you. Loneliness aches and even hides in the shadows at times but never goes away.