strace -e trace=network
to quickly figure out where a process is connecting to.
This traps only system calls that the process makes regarding networking. Very useful to make sure that your process believes the same things about servers and ports that you do.
(Turns out the process needed to be told that 443 is not 8443)