views:

67

answers:

1

I am creating an authentication server for some projects I'm working on. This authentication server works by receiving and transmitting data to users trying to authenticate. The user can send data to the server succesfully but when sending back it requires port forwarding. I read a way that I would not require port forwarding by using reverse connection but I have no idea how to get it working. I found a tutorial and tried to implement but when it tries to connect to read the stream it says the connection is refused.

Any ideas?

+2  A: 

If the user is already connecting to the server, why not just keep the (existing) connection open, and use that for bidirectional communication?

I can see no reason to open a second connection from the server back to the client.

kyoryu
.. im new to TCP connection so if you could gimme a snippet or some way you could help me with it, that would be great
James
anyone else got any more ideas?
James
I'll work up an example later for you, just been busy. At any rate, what does your code look like? What classes are you using for the TCP connection?
kyoryu
James