Receiving IP address in C# from Java side.

Also, the obsolete method, Resolve(...), has been replaced by GetHostEntry(...) method.