cancel
Showing results for 
Search instead for 
Did you mean: 

Connect with LwIP to port 5000

Lmali.1
Associate III

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

1 REPLY 1

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.