It’s a tough one, for sure. The most effective method of dealing with homesickness is making friends in your uni and socialising often do that you don’t feel isolated.
Try immersing yourself into uni life fully. Join a society or two, surround yourself with people you find interesting. If you can do that, you’ll probably feel more at home at uni. Basically try to distract yourself from your homesickness... find a new hobby to try, explore your new town, get involved in social events.