Error receiving in UDP: Connection refused

前端 未结 2 1663
醉梦人生
醉梦人生 2021-02-13 11:36

I am trying to send a string HI to a server over UDP in a particular port and then to receive a response. However, after I try to get the response using recvfrom() I was stuck i

2条回答
  •  盖世英雄少女心
    2021-02-13 12:04

    My guess would be that your ip address is bad somehow, or the port is already in use somehow. UDP is connectionless, so there really isn't any "connection" to fail.

提交回复
热议问题