The obvious questions are :-
1. What is the exception you get back, there are
5 documented[
^]
2. Does 'xyzMicrosoft' resolve through DNS?
An additional observation, is that the timeout is in milliseconds, not seconds, so you're only waiting for 5ms (which should be fine for a machine on the same subnet)