Yes, build that relationship. Do what needs done. Don't complain. Don't act like a permie.
Buy the beers. Be grateful for the contract. Do nothing that will p!55 the client off. It's much easier getting an extension than a new gig.
Yes, get to know the permies, one of them will be a hiring manager soon.
Connect with them on linkedin. Keep in touch after the gig, so they know when you are available.
This is your marketing. Adverts won't work, relationships will. Work at it.