• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I choose a network port for listening/broadcasting? (REPOST)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I choose a network port for listening/broadcasting? (REPOST)


  • Subject: How do I choose a network port for listening/broadcasting? (REPOST)
  • From: Daniel Waylonis <email@hidden>
  • Date: Wed, 12 May 2004 18:03:52 -0700

Hi,

I posted the following in the mac-games-dev list, but I didn't get a
response:

I'd like to add the ability to connect to another machine over IP in my
application (in addition to Rendezvous discovery in my local network).

It's not clear to me how to choose the TCP/UDP port number that my
application will use. I looked on IANA at the list of known port
numbers (http://www.iana.org/assignments/port-numbers). That document
said that ports 49152 - 65535 are dynamic and/or private ports.
However, what happens if I pick one (50000) and some other application
is using it? I suppose that I could have a list of 5-10 ports in that
range that my program will check once given the IP address of the
target machine.

Also, what about firewalls and NAT?

Any thoughts or experience on this matter?

Thanks,
Dan
_________________________________________________
Dan Waylonis email@hidden
Software Engineer http://www.nekotech.com
nekotech SOFTWARE 650.964.2490 (O)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: How do I choose a network port for listening/broadcasting? (REPOST)
      • From: Brent Gulanowski <email@hidden>
  • Prev by Date: Re: Unsigned Long Long
  • Next by Date: Re: File Size and long longs...
  • Previous by thread: Re: File Size and long longs...
  • Next by thread: Re: How do I choose a network port for listening/broadcasting? (REPOST)
  • Index(es):
    • Date
    • Thread