Loneliness is a state of mind, not a description of your social environment. It is often said that you can feel most alone - lonely - in the middle of a bustling city, surrounded by throngs of people.
If you are desperate for social interaction but, for some reason, you can't fulfil this need, you feel lonely. I think we have all felt this at some time or other.
If you can keep yourself company, you will never be short of a friend to share your experiences and, perverse though it may seem, I believe this is a blessing. You should not need other people to validate your fulfilment, but if, on the other hand, you are given the opportunity to share this with another, so much the better. Shared pleasure is a bonus.