제가 알기로는 Wi-Fi socket 통신에서도 아래와 같이 port 번호가 필요합니다.
SocketAddress socketAddress = new InetSocketAddress(address, port);
이 때, port 번호를 가져오는 방법은 따로 있는지 모르겠네요. 보통 port 번호 정보는 별도로 제공하는 것으로 알고 있습니다.