[Mono-bugs] [Bug 61164][Wis] New - System.Net.IPHostEntry.AddressList does not contain proper Address

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 5 Jul 2004 06:48:37 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by alexis.nagy@photo-aktiv.de.

http://bugzilla.ximian.com/show_bug.cgi?id=61164

--- shadow/61164	2004-07-05 06:48:37.000000000 -0400
+++ shadow/61164.tmp.27626	2004-07-05 06:48:37.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 61164
+Product: Mono: Class Libraries
+Version: unspecified
+OS: SUSE 9.1
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: alexis.nagy@photo-aktiv.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Net.IPHostEntry.AddressList does not contain proper Address
+
+Description of Problem:
+I tried to get the IP Address of the System. The behavior of .Net on
+Windows and Mono 1.0 on my SuSE 9.1 x86 Linux is different with the code
+below. On Linux, the returned IP Address is not existent neither on my
+system nor in the used network.
+
+Steps to reproduce the problem:
+string host = System.Net.Dns.GetHostName( );
+System.Net.IPHostEntry ipEntry = System.Net.Dns.GetHostByName( host );
+System.Net.IPAddress[] addr = ipEntry.AddressList;
+System.Console.WriteLine( addr[0].ToString() );
+
+Actual Results:
+192.168.10.3
+
+Expected Results:
+10.2.171.180