Spending 4 hours each day on transport is going to be very tough. It's not impossible, it can be done, but it will be very hard and needs some serious dedication and commitment. For my part, I would not travel to uni every day if it was more than, say, 10 to 15 miles away. I would either rent accommodation nearby, or apply for a place at another institution.
Having said that, you can still make it work. It's just going to be tough. I'm not sure if you drive, but being able to travel by car makes such a massive and immense difference (I speak from experience), it's such a huge help.
It also depends on your course schedule. If you start at 9am and finish at 5pm for 5 days a week, it's going to be tough. But if you only had, say, 2 full days and 1 half day per week, then that would be much easier.
Whatever you decide to do, I'd still say that spending 4 hours a day on travel isn't impossible, it can be done...but it's going to be tough. I once had to attend a placement which was nearly 25 miles away, I could not handle the commute at all (I spent 4 and a half hours a day traveling) and had to find some local accommodation in the area after my first week there, which solved my problem.