Generally one has control over the server ... if this is more of a peer to
peer type app there are lots of methodologies that can be used. The one that
is assured to work is to use what is know as a middle man server ... both
clients connect to the public server and the server routes communications
between them. Generally in P2P systems you try to obtain a peer connection
(much faster) but if you fail you offer the option of falling back to a
middle man server.
There are also protocols such a upnp which many routers support that will
allow you to tell the router to allow data on port xxxx and to forward it to
your program.
Cheers,
Greg
"batista" <sa*********@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Hi,
I have a socket based client server app.The data is in binary
format....
My question is that i am giving a hard coded port number to connect to
the server machince...
if that port number is closed or blocked by the server machine....
then how would i go about it..I mean how am i going to connect to the
server....
I think ill have to use some kind of proxy sevrer...(may be..just a
blind guess)..
So basically what shud i do if the port number im using is blocked on
the server machine.....
what is the preferred approach...
Thanks..
Cheers,
Bye