View Full Version : Aplication using UDP port number - urgent please

05-02-2004, 11:58 AM
Hey all, i am doing a really important homework and i am facing problems with some questions, i've been looking for them on the web but some are realy difficult to find...
I am desperate so i am asking fo help.

See if u can help me on this one:

Imagine tha tu have developed an aplication wich uses UDP protocol through the Internet and it needs a port number. How would u do in order to get a port number? How would u get arround the situation if that number was dennied?

well, thank u a lot iin advance, if u can help me plz do it...

05-02-2004, 12:04 PM
Predetermined ports can be used to exchange the port details for further communications and in case that port was denied the following method can be used...

well the simplest way is to increment the port number by one... untill a specific range.. say your program tries to connect to on port 1000 and it is denied, port 1001 is tried and so on till a pre determined level... But the server program has to be programmed to accomodate this..

This is how i would approach it. may be there are better ways of doing it...

05-02-2004, 12:41 PM
Thanks Vasanth
I think i'll put that answer
If somebody has another way, let me know too, all sugestions are wellcome