Thread: Aplication using UDP port number - urgent please

  1. #1
    Registered User
    Join Date
    Feb 2004

    Aplication using UDP port number - urgent please

    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...

  2. #2
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    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...

  3. #3
    Registered User
    Join Date
    Feb 2004
    Thanks Vasanth
    I think i'll put that answer
    If somebody has another way, let me know too, all sugestions are wellcome

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory issue
    By t014y in forum C Programming
    Replies: 2
    Last Post: 02-21-2009, 12:37 AM
  2. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  3. simultaneously waiting for data on FIFO and UDP using select call
    By yogesh3073 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-05-2007, 09:53 AM
  4. UDP and TCP packets on port 6112
    By biosninja in forum A Brief History of
    Replies: 7
    Last Post: 01-19-2004, 11:21 AM
  5. Array of boolean
    By DMaxJ in forum C++ Programming
    Replies: 11
    Last Post: 10-25-2001, 11:45 PM