I'm looking at the .NET socket connect function in some code. http://msdn.microsoft.com/en-us/library/d7ew360f.aspx This function takes in a string as an argument that represents the name of the remote host.
My question is, how does the socket then go about getting the IP address of this remote host? Does it perform a DNS lookup or can it go to the Windows hosts file? (Windows XP)