This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Hi, I have a server and multiple clients. The server generates messages and sends them to the subscribers. each client has multiple subscribers. The system was simple at the begining. I was generating sub requests on the client side and forward them to the server. The server would group the requests by hostname and create distribution thread for each host. The thread would initiate connection to a fixed port and forward messages in real time. since the ports are fixed i had no problems with FW but now i have to port the application to VPN. The VPN is restricted so a server inside of the LAN can not initiate connection to the clients which are outside. So i was trying to initiate the connection from the client and use the opened socket for my distributer threadv (ServerSocket.accept). but the problem is that I can not switch the local port of the socket that was returned by the server socket SO all of my client are connecting to the same port and all of my threads are trying to use the port to push messages Do u know how to work around that problem? How can i make client to open connection and my server threads to use the connection for the data transffer? Thank you.