mihirg
mihirg

Reputation: 951

Client-Server Communication (without port forwarding) when both are behind routers

hi I have a client and server both of which are behind routers. They need to communicate over sockets. Enabling port-forwarding is not an option. The client-server will maintain a live socket connection and the server will notify the client when an event occurs. Polling as an alternative for the client is not an option. I am using plain-java. How do I go about doing this?

Regards Chimanrao

Upvotes: 0

Views: 877

Answers (1)

Vladimir Dyuzhev
Vladimir Dyuzhev

Reputation: 18336

You may try to use UPnP. That is about the only option if you do not have a server outside of the NAT.

Upvotes: 1

Related Questions