1
Feb
0
Silverlight – Security Policy Server (Needed for TCP Socket)
If you try to use TCP socket in Silverlight you must have this security server running.
How it works
When you try to connect using socket, your client ask the server if it is allowed to connect. The server answer by sending a “Silverlight Policy File”. Depending on the file your client will be allowed to connect.
More about this subject : http://msdn.microsoft.com/en-us/library/cc645032%28VS.95%29.aspx
Policy file example
<?xml version="1.0" encoding="utf-8" ?> <access-policy> <cross-domain-access> <policy> <allow-from> <domain uri="*"/> </allow-from> <grant-to> <socket-resource port="4502-4534" protocol="tcp"/> </grant-to> </policy> </cross-domain-access> </access-policy>
This file allows connection from anywhere and on any port (from 4502 to 4534 – all the port accessible by Silverlight).
The server
You can download the SecurityServer. Then launch it and change the file as you want. Don’t forget to change your firewall rules!!!!!!!!
Reference
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
Subscribe to the RSS feed and have all new posts delivered straight to you.
