socket creation in lwip_httpsrv_freetos

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

socket creation in lwip_httpsrv_freetos

690 Views
ral_mirion
Contributor I

Hi, I am using a frdm-mcxn947 board and i am trying to create a socket on my server. My server is running at http://192.168.0.102:80 i have already checked and everything seems fine( my firewall is also turned off). i will attach my code below. This is what i get in my terminal : "**********************************************************
HTTP Server example
***********************************************************
IPv4 Address : 192.168.0.102
IPv4 Subnet mask : 255.255.255.0
IPv4 Gateway : 192.168.0.100
mDNS hostname : lwip-http
***********************************************************
Creating socket...
Socket created successfully.
Connecting to server...
Connection to server failed."

 

And i don't know why the connection to server is failing, as i said, this is not an ip and port config error, as i checked it multiple times in cmd prompt, there seems to be a code error which i cannot pin out. Please help me if you have any ideas. Thank you!

0 Kudos
Reply
1 Reply

659 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You have to bulld the socket, please check https://www.freertos.org/Documentation/03-Libraries/02-FreeRTOS-plus/02-FreeRTOS-plus-TCP/04-Tutoria...

I guess you may have some firewall exception.

Regards

 

0 Kudos
Reply