July 2017
Beginner to intermediate
390 pages
10h 53m
English
If we want to connect our HoloLens to a server application, we need to know where that server is. Since we will be using TCP for our data transfer, we also need to have a port available. I have added the following code to the Main() method, so it will run as soon as the console application starts:
static void Main(string[] args)
{
var portNumber = 8000;
var host = Dns.GetHostEntry(Dns.GetHostName());
Console.WriteLine("Please use one of these addresses:\n");
foreach (var address in host.AddressList)
{
var addresType = address.AddressFamily.ToString();
Console.WriteLine($"{address} ({addresType})");
}
// Next code will appear here
}
I have decided to use port number 8000. I know for a fact there is nothing on ...
Read now
Unlock full access