How to solve socket -23 error while creating multiple server in nRF9160

Hi Support team,

I am  using nRF9160 module and i want run two server on the module, one is modbus server and other is CoAP server. so is it possible to run both server simultaneously ?

Thanks,

Dvl

Parents
  • Hi Dhaval,

    After replacing IP address in STATIC_IP_STR, I have managed to build (using "west build -b nrf9160dk_nrf9160_ns -d build" command in VS Code) and flash your application to nrf9160-dk in NCS v2.6.0 but the log error that I got (shown below) is different than yours

    <inf> CoAP_APP: coap_service_start : -114
    <inf> CoAP_APP: coap_service_is_running : 0
    <inf> main: [67]StartTCPServer
    <inf> main: [75]StartTCPServer >> socket >> serv >> 2
    <err> main: error: bind: 114

    Is there anything else missing? Should anything else be changed?

    Best regards,
    Dejan

Reply
  • Hi Dhaval,

    After replacing IP address in STATIC_IP_STR, I have managed to build (using "west build -b nrf9160dk_nrf9160_ns -d build" command in VS Code) and flash your application to nrf9160-dk in NCS v2.6.0 but the log error that I got (shown below) is different than yours

    <inf> CoAP_APP: coap_service_start : -114
    <inf> CoAP_APP: coap_service_is_running : 0
    <inf> main: [67]StartTCPServer
    <inf> main: [75]StartTCPServer >> socket >> serv >> 2
    <err> main: error: bind: 114

    Is there anything else missing? Should anything else be changed?

    Best regards,
    Dejan

Children
No Data
Related