diff --git a/srsgnb/hdr/stack/ric/ric_client.h b/srsgnb/hdr/stack/ric/ric_client.h index e78cc34c6..adc1f6520 100644 --- a/srsgnb/hdr/stack/ric/ric_client.h +++ b/srsgnb/hdr/stack/ric/ric_client.h @@ -21,7 +21,7 @@ #include "srsran/interfaces/e2_metrics_interface.h" #include "srsran/srsran.h" static const int e2ap_ppid = 70; -static const int e2ap_port = 36422; +static const int e2ap_port = 36421; enum e2_msg_type_t { E2_SETUP_REQUEST, E2_SUB_RESPONSE, E2_INDICATION, E2_RESET, E2_RESET_RESPONSE }; diff --git a/srsgnb/src/stack/ric/ric_client.cc b/srsgnb/src/stack/ric/ric_client.cc index e7f5eea89..490a5e35c 100644 --- a/srsgnb/src/stack/ric/ric_client.cc +++ b/srsgnb/src/stack/ric/ric_client.cc @@ -36,13 +36,13 @@ bool ric_client::init() } // Bind socket - if (not ric_socket.bind_addr("172.17.0.3", 36422)) { + if (not ric_socket.bind_addr("127.0.0.1", 36425)) { ric_socket.close(); return false; } // Connect to the AMF address - if (not ric_socket.connect_to("10.104.149.217", e2ap_port, &ric_addr)) { + if (not ric_socket.connect_to("127.0.0.1", e2ap_port, &ric_addr)) { return false; } // Assign a handler to rx RIC packets