You can run this command virsh vncdisplay $domainName | awk -F: '{print 590 $2}'
virsh vncdisplay $domainName | awk -F: '{print 590 $2}'
to get the port number in 590x format.