Solution :-

a) In the Tally Software, press F12 and select option Advanced Confiuration

b) Next, set the Port to a different than the current Port, say 9001 or 9002.

c) Save it using Ctrl+A. The new Port settings will be visible in the Gateway of Tally.

d) Next, start UDIMagic and in the 2nd screen, click on the Settings button and set the Port as assigned in Tally Software in point 2.

e) Next, restart udi-Magic and try importing data into Tally.