Index: trunk/FACT++/src/EventBuilderWrapper.h
===================================================================
--- trunk/FACT++/src/EventBuilderWrapper.h	(revision 10853)
+++ trunk/FACT++/src/EventBuilderWrapper.h	(revision 10854)
@@ -97,9 +97,18 @@
         for (vector<string>::const_iterator it=addr.begin(); it!=addr.end(); it++)
         {
-            g_ip[i].port = 5000;
+            //g_ip[i].port = 5000;
             memset(g_ip[i].addr, 0, 100);
-            strncpy(g_ip[i].addr, it->c_str(), 99);
+            //strncpy(g_ip[i].addr, it->c_str(), 99);
+
+            size_t pos = it->find_first_of(':');
+            if (pos==string::npos)
+                continue;
+
+            string a = it->substr(0, pos);
+            string p = it->substr(pos+1);
 
             strcpy(g_ip[i].addr, "127.0.0.1");
+            g_ip[i].port = atoi(p.c_str());
+
             i++;
         }
