Ethernet Products
Determine ramifications of Intel® Ethernet products and technologies
4528 Discussions

Can not receive udp packet from FPGA

Honored Contributor II

I want to send messages from my EP4S230GX device to my computer. I don't know how to use Nios and write linux drivers so I packet UDP frames without using an OS.  

My IP is fixed at with mask and MAC address is 10-C3-7B-44-FA-8A. The "1000M Small MAC" IP core is used in my fpga application. I found that wireshark can recognize my udp packets but my applications can not.  

I tried two applications that written in python and matlab as follows 


s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) s.bind((, 4096)) buf=s.recvfrom(65536)  



u = udp('',4096,'LocalPort',4096,'LocalHost',''); fopen(u) buf=fread(u,1000)  

Both of applications prompt timeout after excute their last line. 

Something is wrong?
0 Kudos
1 Reply
Honored Contributor II

At first glance I can't see anything wrong with your code, even if most Python examples that I see don't specify the IPPROTO_UDP parameter when creating the socket object. The documentation also says it can be omitted. 


Do you have the Windows firewall enabled? If yes try and turn it off and see if it works. If it does then you can try tuning it on again and just open the port 4096. 

Did you try sending the UDP packets from another PC? It can help you find out if the problem is on the receiving part on your PC on on the sending part from the FPGA design.
0 Kudos