临时
try {
val severadress: InetAddress = InetAddress.getByName(IPadress)
val socket: DatagramSocket = DatagramSocket(port, severadress)
val packet: DatagramPacket = DatagramPacket(
Message.toByteArray(),
Message.toByteArray().size, severadress, port
)
socket.send(packet)
Log.d("server", "sending...")
socket.close()
} catch (e: Exception) {
e.printStackTrace()