Hi Magesh, I never see the connection trough web dispatcher for SMD.
I use 2 options, MS (message server) or P4. both with or without saprouter (if you select with saprotuer, you will get a lot of headaache).
On that post you can see scripts for manually setups.
[update] - Scripts for manually setup Diagnostics Agents
Regards,
Lluis