Multi-Protocol proxy detecting a client's protocol intelligently for dynamic forwarding