How to solve the error: The remote name could not be resolved: 'HostUrl'

Hi All,
I am new to ARAS and i try to get familiarized with its concepts.
In the current situation i try to connect two ARAS entities so they can send requests between each other (add, update, delete...)

I created a server event method on ARAS N°2 to send request to ARAS N°1 using the code below:

Innovator inn = this.getInnovator();
string myUrlAdress= "">hostOfAras1/.../anItemType";
var request = (HttpWebRequest)WebRequest.Create(myUrlAdress);
request.Method = "POST";
AuthenticateHeader(request);
string postData= "{\"_propretyOne\":\"ValueOne\",\"_propertyTwo\": \"valueTwo\"}";
var streamWriter = new StreamWriter(request.GetRequestStream());
streamWriter.Write(postData);
streamWriter.Flush();
streamWriter.Close();
return this;
}
private void AuthenticateHeader(WebRequest req)
{
req.Headers.Add("AUTHUSER", "admin");
req.Headers.Add("AUTHPASSWORD", "607920b64fe136f9ab2389e371852af2");
req.Headers.Add("DATABASE", "DataBaseOfAras1");
req.ContentType = "application/json";

When i run it i get the following error: The remote name could not be resolved: 'hostOfAras1' of type System.Net.WebException
NOTE: After some debug i noticed that the error is generated by this line of code " var streamWriter = new StreamWriter(request.GetRequestStream()); "