Re: Finding an available port for chat
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