---
title: "W5500 TCP Client Connect() is not working"
url: "https://maker.wiznet.io/forum/13754"
markdown_url: "https://maker.wiznet.io/forum/13754/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "alperen erdogan"
created: "2020-03-26T01:02:42+09:00"
last_activity: "2022-03-17T13:36:14+09:00"
language: "en"
views: 1694
replies: 9
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W5500 TCP Client Connect() is not working

## Question

Asked by alperen erdogan on 2020-03-26 in Ethernet Chips.

I am using Stm32f303-RE model. I have a Wiznet5500 ethernet module in my hand. I want to create a tcp client with the module and see it as a server on the computer(i have server in visual studio and its working . i checked .) and exchange information between the two and ı use Stm32cubeide .I have created this code using a few reference sources and application notes from wiznet. But the code is stuck at in connect() function , I couldn’t find the solution. . i cant connect to my server . Although I have reviewed the old topics in the forum, I have not found a solution that works for me. /* -----------MyCode -----------*/ /* USER CODE BEGIN Header / /* @file : main.c @brief : Main program body @attention © Copyright (c) 2020 STMicroelectronics. All rights reserved. This software component is licensed by ST under BSD 3-Clause license, the “License”; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause / / USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include “main.h” /* Private includes ----------------------------------------------------------/ / USER CODE BEGIN Includes / #include “wizchip_conf.h” #include “socket.h” #include “loopback.h” #include “string.h” / USER CODE END Includes */ /* Private typedef -----------------------------------------------------------/ / USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------/ / USER CODE BEGIN PD / / USER CODE END PD */ /* Private macro -------------------------------------------------------------/ / USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ SPI_HandleTypeDef hspi3; /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------/ void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_SPI3_Init(void); / USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------/ / USER CODE BEGIN 0 */ void cs_sel() { HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET); //CS LOW } void cs_desel() { HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET); //CS HIGH } uint8_t spi_rb(void) { uint8_t rbuf; HAL_SPI_Receive(&hspi3, &rbuf, 1, 0xFFFFFFFF); return rbuf; } void spi_wb(uint8_t b) { HAL_SPI_Transmit(&hspi3, &b, 1, 0xFFFFFFFF); } /* USER CODE END 0 */ /** @brief The application entry point. @retval int / int main(void) { / USER CODE BEGIN 1 */ uint8_t bufSize = {2,2,2,2,2,2,2,2}; uint8_t s ; s = 0 ; uint8_t server_ip[4] = {192,168,1,5} ; // Bu olmalıdır . Bilgşsayarın ip’si ni inceleyerek buldum . uint8_t Baglan ; uint16_t socket_port = 5656 ; uint16_t server_port = 7777 ; int32_t ret=2 ; /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals / MX_GPIO_Init(); MX_SPI3_Init(); / USER CODE BEGIN 2 */ /*------ RESET WIZNET / // HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, SET); // HAL_Delay(1); // HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0, RESET); / -------------------- */ reg_wizchip_cs_cbfunc(cs_sel, cs_desel); reg_wizchip_spi_cbfunc(spi_rb, spi_wb); wizchip_init(bufSize,bufSize); wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address .ip = {192, 168, 1, 60}, // IP address .sn = {255, 255, 255, 0}, // Subnet mask .gw = {192, 168, 1, 1}}; // Gateway address wizchip_setnetinfo(&netInfo); wizchip_getnetinfo(&netInfo); wiz_NetTimeout gWIZNETTIME = {.retry_cnt = 3, //RCR = 3 .time_100us = 2000}; //RTR = 2000 ctlnetwork(CN_SET_TIMEOUT,(void*)&gWIZNETTIME); ctlnetwork(CN_GET_TIMEOUT, (void*)&gWIZNETTIME); /* USER CODE END 2 */ /* Infinite loop / / USER CODE BEGIN WHILE */ while (1) { if(((ret =socket((uint8_t )s,Sn_MR_TCP,socket_port,SF_TCP_NODELAY)))==s) { while(Baglan != 0) { Baglan = connect((uint8_t )s,(uint8_t *)server_ip,(uint16_t )server_port); // hedef port numarası HAL_Delay(1000); } } Baglan = 0 ; /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ } /** @brief System Clock Configuration @retval None */ void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Initializes the CPU, AHB and APB busses clocks / RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; RCC_OscInitStruct.HSIState = RCC_HSI_ON; RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } /* Initializes the CPU, AHB and APB busses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { Error_Handler(); } } /** @brief SPI3 Initialization Function @param None @retval None */ static void MX_SPI3_Init(void) { /* USER CODE BEGIN SPI3_Init 0 */ /* USER CODE END SPI3_Init 0 */ /* USER CODE BEGIN SPI3_Init 1 */ /* USER CODE END SPI3_Init 1 / / SPI3 parameter configuration*/ hspi3.Instance = SPI3; hspi3.Init.Mode = SPI_MODE_MASTER; hspi3.Init.Direction = SPI_DIRECTION_2LINES; hspi3.Init.DataSize = SPI_DATASIZE_8BIT; hspi3.Init.CLKPolarity = SPI_POLARITY_LOW; hspi3.Init.CLKPhase = SPI_PHASE_1EDGE; hspi3.Init.NSS = SPI_NSS_SOFT; hspi3.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_32; hspi3.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi3.Init.TIMode = SPI_TIMODE_DISABLE; hspi3.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi3.Init.CRCPolynomial = 7; hspi3.Init.CRCLength = SPI_CRC_LENGTH_DATASIZE; hspi3.Init.NSSPMode = SPI_NSS_PULSE_ENABLE; if (HAL_SPI_Init(&hspi3) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN SPI3_Init 2 */ /* USER CODE END SPI3_Init 2 */ } /** @brief GPIO Initialization Function @param None @retval None */ static void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOF_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0|CS_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET); /*Configure GPIO pins : PA0 CS_Pin */ GPIO_InitStruct.Pin = GPIO_PIN_0|CS_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /*Configure GPIO pin : PB0 */ GPIO_InitStruct.Pin = GPIO_PIN_0; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); } /* USER CODE BEGIN 4 */ /* USER CODE END 4 */ /** @brief This function is executed in case of error occurrence. @retval None / void Error_Handler(void) { / USER CODE BEGIN Error_Handler_Debug / / User can add his own implementation to report the HAL error return state */ /* USER CODE END Error_Handler_Debug */ } #ifdef USE_FULL_ASSERT /** @brief Reports the name of the source file and the source line number where the assert_param error has occurred. @param file: pointer to the source file name @param line: assert_param error line source number @retval None */ void assert_failed(uint8_t file, uint32_t line) { / USER CODE BEGIN 6 / / User can add his own implementation to report the file name and line number, tex: printf(“Wrong parameters value: file %s on line %d\r\n”, file, line) / / USER CODE END 6 / } #endif / USE_FULL_ASSERT */ /************************ (C) COPYRIGHT STMicroelectronics *END OF FILE/ I tried to detect the problem with the wireshark program, but the message I see is always in the same application. What is the problem in connect fuction ? I would be glad if you could help. forum_s_1951×735 158 KB and by the way im using this connection : 3.3V ----> 3.3v on stm mosi — > mosi on stm miso ----> miso on stm clk --------> spi’s clk on stm gnd --------> gnd on stm csn ---------> spi’s cs on stm im not using reset pin on wiznet . Are these connections enough?

## Replies

### Reply 1 by becky, 2020-03-27

If you use the WIZ850io module, the connection is enough.
Looking at the packet, the module is looking for a 192.168.1.5 server, but it does not receive a response.
This may not be a firmware issue
Check if you have a server and check the network environment.

### Reply 2 by alperen erdogan, 2020-03-31

i checked network environment . But all its ok . i looked port . its opening with application . İ try close the firewall but its stay same position . not running . icant find why

### Reply 3 by becky, 2020-04-01 (in reply to reply 2)

What is 192.168.1.5?
I can see the ARP packet sent by W5500, I think your PC and W5500 are connected.
If 192.168.1.5 is not a PC, check if the PC can connect to 192.168.1.5

### Reply 4 by alperen erdogan, 2020-04-01

what is mean "check if the PC can connect to 192.168.1.5 " . 192.168.1.5 is my personal pc’s ip . im using win10 home .

### Reply 5 by becky, 2020-04-03 (in reply to reply 4)

If your PC is 192.168.1.5, I think there is a problem with the PC environment. Your PC is not giving ARP Response. Turn off any firewalls, virtual machine programs or security programs.

[![image](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/b/b29830e9154cc595315f99a17c25d64fdc5e2fbd.png) image872×799 37 KB](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/b/b29830e9154cc595315f99a17c25d64fdc5e2fbd.png)

### Reply 6 by alperen erdogan, 2020-04-03

hi becky , I slightly modified my code.im using only Windows firewall for antivirus . The ip of my computer is 192.168.1.6 and the ip of wiznet is set to 192.168.1.5. I want to show you in the images how I did it : 3nisan2020_3954×562 40.7 KB 3nisan2020_5762×465 66.2 KB 3nisan2020_6769×467 66.9 KB 3nisan2020_7887×128 23.4 KB 3nisan2020980×192 29.1 KB 3nisan2020_2958×1038 31.3 KB My new Code : /------------------------------------------------------------------/ /* USER CODE BEGIN Header / /* @file : main.c @brief : Main program body @attention © Copyright (c) 2020 STMicroelectronics. All rights reserved. This software component is licensed by ST under BSD 3-Clause license, the “License”; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause / / USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include “main.h” /* Private includes ----------------------------------------------------------/ / USER CODE BEGIN Includes / #include “wizchip_conf.h” #include “socket.h” #include “loopback.h” #include “string.h” / USER CODE END Includes */ /* Private typedef -----------------------------------------------------------/ / USER CODE BEGIN PTD */ /* USER CODE END PTD */ /* Private define ------------------------------------------------------------/ / USER CODE BEGIN PD / / USER CODE END PD */ /* Private macro -------------------------------------------------------------/ / USER CODE BEGIN PM */ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ SPI_HandleTypeDef hspi3; /* USER CODE BEGIN PV */ /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------/ void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_SPI3_Init(void); / USER CODE BEGIN PFP */ /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------/ / USER CODE BEGIN 0 */ void cs_sel() { HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET); //CS LOW } void cs_desel() { HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET); //CS HIGH } uint8_t spi_rb(void) { uint8_t rbuf; HAL_SPI_Receive(&hspi3, &rbuf, 1, 0xFFFFFFFF); return rbuf; } void spi_wb(uint8_t b) { HAL_SPI_Transmit(&hspi3, &b, 1, 0xFFFFFFFF); } /* USER CODE END 0 */ /** @brief The application entry point. @retval int / int main(void) { / USER CODE BEGIN 1 */ uint8_t bufSize = {2,2,2,2,2,2,2,2}; uint8_t s ; s = 0 ; uint8_t server_ip[4] = {192,168,1,6} ; // My PC’s new IP address . uint8_t Baglan = 10 ; // when w5500 connect to pc correctly , this count going to “0” . uint16_t socket_port = 5656 ; // port uint16_t server_port = 5656 ; // port uint16_t ret=2 ; // when socket is work correctly , this count going to “sucket number” /* * int8_t memsize[2][8] = {{2,2,2,2,2,2,2,2},{2,2,2,2,2,2,2,2}}; uint8_t rec_buf [20]; */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals / MX_GPIO_Init(); MX_SPI3_Init(); / USER CODE BEGIN 2 */ reg_wizchip_cs_cbfunc(cs_sel, cs_desel); reg_wizchip_spi_cbfunc(spi_rb, spi_wb); wizchip_init(bufSize,bufSize); wiz_NetInfo netInfo = { .mac = {0x00, 0x08, 0xdc, 0xab, 0xcd, 0xef}, // Mac address .ip = {192, 168, 1, 5}, // w5500 IP address .sn = {255, 255, 255,0}, // Subnet mask .gw = {192, 168, 1,1}}; // Gateway address wizchip_setnetinfo(&netInfo);//set IP address wizchip_getnetinfo(&netInfo); /------TIMEOUT CONFIG-----/ wiz_NetTimeout gWIZNETTIME = {.retry_cnt = 3, //RCR = 3 .time_100us = 2000}; //RTR = 2000 ctlnetwork(CN_SET_TIMEOUT,(void*)&gWIZNETTIME); ctlnetwork(CN_GET_TIMEOUT, (void*)&gWIZNETTIME); /* USER CODE END 2 */ /* Infinite loop / / USER CODE BEGIN WHILE */ while (1) { ret = socket(s,Sn_MR_TCP,socket_port,SF_TCP_NODELAY); // s = socket num HAL_Delay(1000); while(Baglan != 1 ) // SOCK_OK = 1 ; { Baglan = connect((uint8_t )s,(uint8_t *)server_ip,(uint16_t )server_port); // hedef port numarası HAL_Delay(1000); } Baglan = 0 ; /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ } /** @brief System Clock Configuration @retval None */ void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Initializes the CPU, AHB and APB busses clocks / RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; RCC_OscInitStruct.HSIState = RCC_HSI_ON; RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); } /* Initializes the CPU, AHB and APB busses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) { Error_Handler(); } } /** @brief SPI3 Initialization Function @param None @retval None */ static void MX_SPI3_Init(void) { /* USER CODE BEGIN SPI3_Init 0 */ /* USER CODE END SPI3_Init 0 */ /* USER CODE BEGIN SPI3_Init 1 */ /* USER CODE END SPI3_Init 1 / / SPI3 parameter configuration*/ hspi3.Instance = SPI3; hspi3.Init.Mode = SPI_MODE_MASTER; hspi3.Init.Direction = SPI_DIRECTION_2LINES; hspi3.Init.DataSize = SPI_DATASIZE_8BIT; hspi3.Init.CLKPolarity = SPI_POLARITY_LOW; hspi3.Init.CLKPhase = SPI_PHASE_1EDGE; hspi3.Init.NSS = SPI_NSS_SOFT; hspi3.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_32; hspi3.Init.FirstBit = SPI_FIRSTBIT_MSB; hspi3.Init.TIMode = SPI_TIMODE_DISABLE; hspi3.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; hspi3.Init.CRCPolynomial = 7; hspi3.Init.CRCLength = SPI_CRC_LENGTH_DATASIZE; hspi3.Init.NSSPMode = SPI_NSS_PULSE_ENABLE; if (HAL_SPI_Init(&hspi3) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN SPI3_Init 2 */ /* USER CODE END SPI3_Init 2 */ } /** @brief GPIO Initialization Function @param None @retval None */ static void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOF_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_0|CS_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET); /*Configure GPIO pins : PA0 CS_Pin */ GPIO_InitStruct.Pin = GPIO_PIN_0|CS_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /*Configure GPIO pin : PB0 */ GPIO_InitStruct.Pin = GPIO_PIN_0; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); } /* USER CODE BEGIN 4 */ /* USER CODE END 4 */ /** @brief This function is executed in case of error occurrence. @retval None / void Error_Handler(void) { / USER CODE BEGIN Error_Handler_Debug / / User can add his own implementation to report the HAL error return state */ /* USER CODE END Error_Handler_Debug */ } #ifdef USE_FULL_ASSERT /** @brief Reports the name of the source file and the source line number where the assert_param error has occurred. @param file: pointer to the source file name @param line: assert_param error line source number @retval None */ void assert_failed(uint8_t file, uint32_t line) { / USER CODE BEGIN 6 / / User can add his own implementation to report the file name and line number, tex: printf(“Wrong parameters value: file %s on line %d\r\n”, file, line) / / USER CODE END 6 / } #endif / USE_FULL_ASSERT */ /************************ (C) COPYRIGHT STMicroelectronics *END OF FILE/ /----------------------------/ And I turned of firewall like this : 3nisan2020_1956×1041 71.3 KB I test the operation of my device as follows. I am using ‘breakpoint’ on the stm32cubeide application. I then examine the values that connect () 'gives me. The return values I constantly see are similar. 3nisan2020_81920×1080 172 KB 3nisan2020_91920×1080 175 KB 3nisan2020_101920×1038 198 KB 3nisan2020_121920×1039 180 KB 3nisan2020_131916×1040 179 KB My errors decimal values = -3 , -4 , -13 .the code initially gives “-4” and sometimes “-13” as an error. And then he always gives the error “-3” and gets stuck. My wireshark ss and description of the errors in the driver : 3nisan2020_11958×799 102 KB 3nisan2020_14994×330 73 KB

### Reply 7 by alperen erdogan, 2020-04-03

i fix it the problem ![:slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12) thank you for all becky !

### Reply 8 by sadhu, 2022-03-17

Dear alperen,
can you explain how u fixed the issue.i am facing same problem.
thank u.

### Reply 9 by alperen erdogan, 2022-03-17 (in reply to reply 8)

Hi sadhu,
This project was my first embedded project. And now i am embedded software engineer. So interesting for me your message ![:slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12) This problem about the FANTASTIC WINDOWS. This issue coming from FANTASTIC WINDOWS FIREWALL. And solution do not use windows. When i used my personel home modem, fix all of bugs errors. All of thing. Connect your wiznet module to your home modem or your router or something like that. If u connect to directly your PC, you can not use this module. Because FANTASTIC WINDOWS FIREWALL.

---

Source: https://maker.wiznet.io/forum/13754
