Hi,
Try to check /usr/sap/SMD/SMDA98/SMDAgent/configuration/runtime.properties. Does it direct to the right port? If not you can change is using command smdsetup.sh managingconf hostname:"<servername>" port:"XXXX".
Try to check the runtime.properties again and it should be:
smd.agent.connection.url=ms\://<servername>\:<port>/P4
Hope this will help.
Regards,
Carroll M