How do I get WMI working between Vista and Windows 2003 over the Internet using VB.Net?

I have a Windows 2003 server (VPS) running at EUKHost which I have complete control over and I want to see whether I can utilise WMI to manage DNS entries.

I picked up a test program off the internet (see code) and using Visual Studio 2008 ran this from a laptop running Vista.  After 20 secs or so, it reported "The RPC server is unavailable".

I have been liaising with EUKHost over this and they say that port 135 is open.  I have run a simple port scanner testing for connectivity between my laptop and my VPS.  The normal ports are open like 25, 53, 80 and 110 but 135 appears not to be.

I have tried disabling all firewalls in between: my VPS firewall, my broadband router firewall (Orange Livebox) and my personal firewall (Norton 360 v3), alll at the same time, and it makes no difference.

I think I need to focus on checking connectivity between the two computers first and then try to get WMI working.

Any advice would be appreciated.
Dim scope As ManagementScope
Dim options As ConnectionOptions
options = New ConnectionOptions()
options.Username = "<username>"
options.Password = "<password>"
scope = New ManagementScope("\\<ip address>\root\cimv2", options)

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It's likely that your ISP has blocked port 135... this is very common.   So, that'd mean that you'd have to create a VPN tunnel through the internet in order to use WMI over the internet.
Talk to your hosting company and ask them about VPN tunnelling..

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.