Forum Discussion
Altera_Forum
Honored Contributor
21 years agoUDP send always fails with -1
Hi, We have a simple setup running on Altera development board where we are attempting to send a UDP packet out to a PC for collcetion. Starting with the net example files, I was able to build...
Altera_Forum
Honored Contributor
21 years agoGiven that you can access the web page, it sounds like the problem really is something to do with the address that you are using. Is the ARP you are seeing for the correct address? and is the machine you are trying to send to the same one as you are running your web browser on?
Also, while it's probably nothing to do with your problem, I would have used: local.sin_addr.s_addr = inet_addr ("172.25.110.17"); rather than: local.sin_addr.s_addr = htonl(0xAC196E11); just for readability.