Re: Finding an available port for chat
Re: Finding an available port for chat
- Subject: Re: Finding an available port for chat
- From: Todd Heberlein <email@hidden>
- Date: Fri, 17 Jul 2009 16:18:02 -0700
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