Help Needed with C UDP Server Testing

0
5
Asked By CuriousCoder93 On

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

Answered By TechWhiz404 On

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.

CuriousCoder93 -

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.

Answered By DebuggingDynamo On

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.

CuriousCoder93 -

Got it, thanks for the suggestion!

Answered By CodeSavant77 On

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.