I finally managed to figure it out. In the postgresql.conf file, I put in:port = '5490' and that worked.