對雙卡網或者多網卡的機器,每個網卡都會有一個獨立的ip,如果使用了IPAddress.Any就表示服務器必須監聽本機所有網卡上的指定端口。
- 比如雙網卡機器,內網ip爲192.168.0.1,外網ip爲120.210.1.1,服務器可以同時監聽192.168.0.1:80和120.210.1.1:80。
對雙卡網或者多網卡的機器,每個網卡都會有一個獨立的ip,如果使用了IPAddress.Any就表示服務器必須監聽本機所有網卡上的指定端口。
this.richTextBox2.SelectionStart=this.richTextBox2.Text.Length; this.richTextBox2.ScrollToCaret();
public partial class MyMessageBox : Window { public static void Show(string strErrorInfo) {