2015-12-16 39 views

回答

2

您必須將0設置爲port編號爲InetSocketAddress構造函數。然後您可以撥打getLocalAddress()getLocalPort來獲得真實的端口號。

相關問題