Socket programing Permission denied

前端 未结 3 2030
醉梦人生
醉梦人生 2020-12-17 11:03

Following code is TCP server program just send back “HELLO!!” to client.

When I run server with port 80, bind() is returned Permission denied.

P

3条回答
  •  粉色の甜心
    2020-12-17 11:12

    you have to run your application with super user account (root)

    Run your application with sudo command

提交回复
热议问题