Being lonely or not lonely is jus another state of the mind.
i think when u feel lonely is because you feel missing out on
potentially somethng very "good'. u feel a lack.
if u need advice here then i say u master your mind first.
convince yourself that u r not staying in a mountain devoid of
human becauase that really is truly lonely. go somewhere: a
library, the pool etc. sms a friend etc.
if you r born lazy or truly too introvert and expect something
out of nothing then so sorry because like so many posts and replies
here, accept this is the outcome of your life.