diff --git a/near-rt-ric-simulator/tests/OSC_2.1.0/test_osc_2_1_0.py b/near-rt-ric-simulator/tests/OSC_2.1.0/test_osc_2_1_0.py
index 5b8be30b323d0d739a67f9da6cab889af650a76b..9b53a27b935cc6b2767afffc5edd3b5d919ce650 100644
--- a/near-rt-ric-simulator/tests/OSC_2.1.0/test_osc_2_1_0.py
+++ b/near-rt-ric-simulator/tests/OSC_2.1.0/test_osc_2_1_0.py
@@ -27,9 +27,9 @@ import json
 
 #Constants for the test case
 INTERFACE_VERSION="OSC_2.1.0"
-PORT_NUMBER=2222
-HOST_IP="127.0.0.1"
-SERVER_URL="http://127.0.0.1:"+str(PORT_NUMBER)+"/"
+PORT_NUMBER="2222"
+HOST_IP="localhost"
+SERVER_URL="http://"+HOST_IP+":"+PORT_NUMBER+"/"
 
 cwd=os.getcwd()+"/"
 # Env TESTS_BASE_PATH is set when executed via tox.ini
diff --git a/near-rt-ric-simulator/tests/STD_1.1.3/test_std_1_1_3.py b/near-rt-ric-simulator/tests/STD_1.1.3/test_std_1_1_3.py
index 483d9646fcf31f05b8f0119c0d6a589fc8a7bf81..db0a6a2157b24c3339f0b6cc63aee6387038d3b2 100644
--- a/near-rt-ric-simulator/tests/STD_1.1.3/test_std_1_1_3.py
+++ b/near-rt-ric-simulator/tests/STD_1.1.3/test_std_1_1_3.py
@@ -26,9 +26,9 @@ import json
 
 #Constants for the test case
 INTERFACE_VERSION="STD_1.1.3"
-PORT_NUMBER=2224
-HOST_IP="127.0.0.1"
-SERVER_URL="http://127.0.0.1:"+str(PORT_NUMBER)+"/"
+PORT_NUMBER="2224"
+HOST_IP="localhost"
+SERVER_URL="http://"+HOST_IP+":"+PORT_NUMBER+"/"
 
 cwd=os.getcwd()+"/"
 # Env TESTS_BASE_PATH is set when executed via tox.ini
@@ -342,7 +342,7 @@ class TestCase1(TestCase):
 
         # API: Update policy instance pi2
         # Reuse same policy data
-        response=requests.put(SERVER_URL+'A1-P/v1/policies/pi2?notificationDestination=http://localhost:2224/statustest', headers=header, data=json.dumps(data_pi2))
+        response=requests.put(SERVER_URL+'A1-P/v1/policies/pi2?notificationDestination=http://'+HOST_IP+':'+PORT_NUMBER+'/statustest', headers=header, data=json.dumps(data_pi2))
         self.assertEqual(response.status_code, 200)
         result=json.loads(response.text)
         res=compare(data_pi2, result)