Skip to main content
Visitor II
March 17, 2021
Question

Connect with LwIP to port 5000

  • March 17, 2021
  • 1 reply
  • 855 views

Hi Guys,

I want to connect a server via port 5000.

When connecting to other server with port 80 there is no problem, but when connecting with port 5000 it doesn't works.

IP_ADDR4( &remote_ip, 11, 12, 13, 14);

CommDropsTcpConn = netconn_new(NETCONN_TCP);

netconn_connect(CommDropsTcpConn, &remote_ip, 5000); --> return -14 (ERR_RST)

what do I need to configure to support connection to port 5000,? (or any port other than 80..)

Thanks,

Lior

    This topic has been closed for replies.

    1 reply

    Visitor II
    March 17, 2021

    Hello

    Is remote server configured to listening at port 5000?

    The RST error means that the connection was reset by the remote host.

    Create a "Virtual Server" or use "port forwarding" to a remote router , to redirect "external port 5000" to an internal port eg. 80.