views:

183

answers:

2

I am writing silverlight 3 application which is working on network.
It works like client-server application. There is WinForm application for server and silverlight application for client.
I use TcpListener on server and connect from client to it with Socket.
In local network it works fine, but when I try to use it from internet it don't connect to server.
I use IP address on local network and real IP with port number for internet version.
Where is the problem?
Thanks.

+1  A: 

As far as I know in Silverlight you have so use a port in the range 4502-4534, and a policy file should be on the server machine to allow the connection to be made. I wouldn't be surprised if local network connections are allowed in some cases.

I'm not too familiar with Silverlight 3 though, See http://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx for more information.

If you can see the policy file being GET in the HTTP access log, you might be able to break the problem in two.

Edited: Text changed because at first for some reason I thought you said you tested on "localhost".

deltreme
A: 

The problem was in my computer. It connected to local network, which is connected to router.
Thats why I can't connect to my computer.

Samvel Siradeghyan