2011-05-16 23 views
0

在開發過程中,我們通常使用localhost作爲主機名,像下面如何指定的IP地址的TcpClient使用

Dim serverListener As New TcpClient("localhost", 8585) 

我希望用戶通過文本框可以輸入自己的IP地址,而不是,就像

Dim serverListener As New TcpClient(textbox1.text, 8585) 

但是,這不適合我。有任何想法嗎?謝謝!

回答

相關問題