This thread is kind of old, but I still stumbled across it, so this might be helpful to others.
I tried to use python with sockerscpi to remotely control my DP832, but as previously mentioned the port 5025 does not work. For my unit, everything works fine when I use port 5555.
I simply tried all open ports returned by nmap:
nmap -p- 192.168.178.133
In case someone also uses socketscpi, this works for me:
psu = socketscpi.SocketInstrument(192.168.178.133, port=5555, verboseErrCheck=False)