Click here to Skip to main content
15,896,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My ISP has blocked 135 port which used by RPC,

So I can't use CoCreateInstanceEx to create a remote object on a remote computer,

could i use "RPC over Http"? And how? Is there any example of client?

I have got some info from google. But it looks like that "RPC over Http" is only designed for Windows Exchange Server?

Thanks~~!
Posted

Your ISP will have given the same ip you have to many customers, therefore it's not a good idea to use common known ports. You must generally not use ports below 1024.

You can configure RPC to use a different port using rpccfg.exe Here's an explanation & a recommendation about it.
http://support.microsoft.com/kb/908472[^]

You may check common port number usage here
http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers[^]

Also note, that ports may be blocked by your router (or broadband modem). You must login to your router and forward the port numbers you use, so that other may reach your service at your port. (remember not to forward ports below 1024)

Just google for info on how to forward ports with your router/modem model no. I'm sure you'll find it
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 12-Jun-11 14:00pm    
Good, I also added a link to official document regulating port numbers.
Please see my answer.
--SA
strogg 12-Jun-11 14:40pm    
Forgot to mention, here's a link which explains enabling RPC on HTTP
http://blogs.msdn.com/b/asiatech/archive/2010/09/03/how-to-configure-quot-rpc-over-http-quot-for-dcom-communication-in-windows-2003.aspx
In addition to the answer by strogg:
All well-known ports, registered ports and a valid range for dynamic and/or private ports are officially documented here:

http://www.iana.org/assignments/port-numbers[^].

This is the ultimate source, because IANA is the authority here, operated be the ICANN.
See http://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority[^], http://en.wikipedia.org/wiki/Internet_Corporation_for_Assigned_Names_and_Numbers[^].

All application should be compliant with this document to avoid conflict.

—SA
 
Share this answer
 
v2
Comments
strogg 12-Jun-11 14:23pm    
A comprehensive list!
Sergey Alexandrovich Kryukov 12-Jun-11 14:30pm    
Thank you. This comprehensive only because this is the original source. IANA is the authority in this field, please see my update.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900