I am sorry in advance if this is not the right place to post this topic. Having said that, here is my problem:
I am using the code below to get the host name or IP of the machine I am starting the program at: (for ex. test.cs.test.edu or 192.168.1.100)
Here is the code that I am using