tags:

views:

20

answers:

0

Tested with 4 PC, 1 of which is local, the others are lan PC in my office environment.
All these PC are using static IP with hostname which are all ping-able.

I used Socket and wanted to get the hostname of the remote PC.
Out of the 4 PC, there is only 1 PC giving me problems.
The problem of that PC is that I have already got the IPAddress, but when it reaches DNS.getHostEntry(), it hit an error that states

The requested name is valid, but no data of the requested type was found

Actually what is the cause of the problem as I definitely can ping the hostname, and this PC is the same subnet and such. Read through some other forum, seem like it is DNS server error.