I've set up a simple UDP server in C that listens on port 53, but I'm having trouble seeing the requests it receives. I run my server in one console window and then in another, I use the command "nc -u IP_OF_MY_LOCAL_SERVER 53" to send requests to it. However, I never see any output in the server window, which makes me think I might be doing something wrong. Can anyone help? Thanks!
3 Answers
Could you share the source code of your server? It's tough to diagnose the issue without seeing it. Also, when you say 'C server,' are you referring to a specific type of server? A little clarity could help.
I agree that we need more info about your testing process. Is the `nc` command giving you any output? Is it freezing up or timing out? If you could provide both your server code and the details of what's happening when you run the tests, that would be super helpful.
Got it, thanks for the suggestion!
I'm not sure how any of this relates to bash. Can you clarify what platform you're using for this? It seems like the problem might lie in the server's code rather than the commands you're running.

It's a server coded in C. I'm not looking for debugging help at this point, just trying to figure out if I'm testing it correctly.