Thanks a lot for the reply.
If I have understood it right : from computer the sent PRC commands are sent to port 30000 of the robot. On the robot side, robot data are being sent from the port 30001 of the robot. In the grasshopper component, "49152" is the local computer port where the robot should send the data.
I have reverted back to the original code now again. In the PRC_RunUDP I find this line:
prc_udp.CORE_UDP(robot, kuka_Sunrise_Cabinet_1, getApplicationData().createFromTemplate(toolname), tcpname, baseFrame, enablellogging, getLogger(), getApplicationData(), iogrp, "172.31.1.149", 49152);
I am guessing that the string is the robot IP (which in my case is different) and 49152 is the port where the robot would send the data ?
Do I need to explicitly define the external port in the UDPSender.java
Please bear with me may be.