I believe this is known as port forwarding.
Most routers can do this.
On a Linux box, you can use iptables. On Windows use for instance this.
If I understand the silverlight socket security model correctly, a silverlight application can only connect to the host it was downloaded from, and only to a certain port range (80, 4502-4532 [BTW, does anyone know why that particular port range was selected?]).
So to connect from SL to you legacy app, you would have to...
Either:
- Have port mapping running on the server that the SL app is served from (probably a web server running IIS, right? That means it's a Windows box so search for 'port mapping windows', PortMapper seems to be popular.)
- Configure the port mapper to forward port 45xx to port 3002 on the server that the legacy app is running on (maybe the same server as the web server?)
Or:
if all traffic to the web server must pass through a certain router that you have some sort of control over, you could configure the port mapping there.