[Feature][RIL][T8TSK-279] Modify the IP address of RIL service and related libraries to 127.0.0.1 2

    Only Configure:No
    Affected branch:All
    Affected module:RIL
    Is it affected on both ZXIC and MTK:both
    Self-test:Yes
    Doc Update:No

Change-Id: If3b2ce69d2c1b1fd1cfdbd461c159de83952404b
diff --git a/framework/lynq-ril-service/src/ril.cpp b/framework/lynq-ril-service/src/ril.cpp
index a30b0af..06334cf 100755
--- a/framework/lynq-ril-service/src/ril.cpp
+++ b/framework/lynq-ril-service/src/ril.cpp
@@ -6022,26 +6022,24 @@
         RLOGD("set broadcast fail!!!\n");
         exit(1);
     }
+
+    struct sockaddr_in ril_lynq_urcCLient_socket;
+    bzero(&ril_lynq_urcCLient_socket, sizeof(ril_lynq_urcCLient_socket));
+
+    ril_lynq_urcCLient_socket.sin_family = AF_INET;
+    ril_lynq_urcCLient_socket.sin_addr.s_addr = inet_addr(LYNQ_RIL_FWK_IP);
+    ret = bind(lynq_urc_socket_fd, (struct sockaddr *)&ril_lynq_urcCLient_socket, sizeof(ril_lynq_urcCLient_socket));
+    if (-1 == ret)
+    {
+        LYERRLOG("ril_lynq_urcCLient_socket bind fail,errno:%d",errno);
+        exit(EXIT_FAILURE);
+    }
+    
     urc_broadcast_addr.sin_family = AF_INET;        //IPv4
     urc_broadcast_addr.sin_port = htons(LYNQ_BRODCAST_PORT);
     urc_broadcast_addr.sin_addr.s_addr = inet_addr("255.255.255.255" );//255.255.255.255 broadcast addrress.
     printf("LYNQ_RIL_urcClientInit success!!!\n");
     return;
-    /*
-    while(1)
-    {
-        len = sendto(lynq_urc_socket_fd,"hello world",11,0,(struct sockaddr *)&urc_broadcast_addr,sizeof(urc_broadcast_addr));
-        if(len > 0)
-        {
-            printf("sendto success,len=%d\n",len);
-        }
-        else
-        {
-            printf("sendto fail\n");
-        }
-        sleep(1);
-    }
-    */
 }
 
 //add by hq for bug 760 2023/02/09