• 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
Re: Finding an available port for chat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding an available port for chat


  • Subject: Re: Finding an available port for chat
  • From: Development <email@hidden>
  • Date: Fri, 17 Jul 2009 19:08:49 -0700

I'm not trying to skirt around rules. Yahoo chat works on my machine, So did msn years back when I had it and so does teamspeak and ventrilo so I know there are ports out there that are free to be used I'm just not sure how to go about choosing one or if I should just hard code it. It's not a file exchange program just text chat and the two iPhones will communicate directly with each other rather than through my server since frankly I have high bandwidth demands as is. That and I cannot run a chat server daemon on the server since it's shared hosting rather than dedicated.
So if I use the unix socket I can just pass 0 but I can't for the CFNetwork socket?


On Jul 17, 2009, at 4:18 PM, Todd Heberlein wrote:

but there will be persons like myself with draconian isp who block gobs of ports and make it hard to for chat apps to work.

There are a lot of very good reasons for a Draconian policy like that. :)


how can I, in a reasonably economic way, find an open port to talk on?

Are you trying to specify a specific port on your machine you know will get past the ISP's filtering? Or are you just trying to find a random high-numbered port that the ISP will unlikely have blocked? Or are you trying to get around the blocking in general.


If you drop down to Berkeley sockets layer, you can specify a port for your server, or you can pass 0 as the port and the server will (somewhat) randomly choose a high numbered port for you. If you think lots of potential users are going to suffer port filtering, you could set up a server somewhere else on the Internet and have both users connect to that. For example, user's A and B connect to each other by connecting to a third machine C. That way neither user A or B need to have their machine open up a server on their machine.

Todd


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Finding an available port for chat
      • From: glenn andreas <email@hidden>
References: 
 >Finding an available port for chat (From: Development <email@hidden>)
 >Re: Finding an available port for chat (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: NSTextView without NSScrollView
  • Next by Date: Re: Finding an available port for chat
  • Previous by thread: Re: Finding an available port for chat
  • Next by thread: Re: Finding an available port for chat
  • Index(es):
    • Date
    • Thread