Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a PC, which have a public IP 192.public.1.10 and local IP 192.168.Local.10. I wish to use WMI Explorer to connect to this PC from a different network, which is connected through VPN.

Now I can use WMI Explorer to connect to this PC, from the same network using local IP & Public IP.

I can use WMI Explorer to connect to this PC, from a different network using only local IP. I want to WMI connect to it using public IP. Now I receive an exception "RPC server unavailable", while trying to connect it.

Can anyone help me to resolve this?

What I have tried:

I tried to connect using WMI explorer and googled about the issue
Posted
Updated 12-Apr-16 0:08am

1 solution

Because you can connect to both IPs from the local network but not from the outside, it seems that the connection is blocked by a firewall (e.g. on a router / gateway). This will not occur when using VPN (the firewall let the VPN packets pass).

If your firewall provides logs, you may check them to see which packets has been dropped.

AFAIK WMI uses port 135 or 445 to make a connection and then chooses a random port for communication. While the local firewall knows this port number, a firewall on a gateway system does not. To avoid using random ports you can configure WMI to use a fixed port: Setting Up a Fixed Port for WMI (Windows)[^].

Then configure your gateway firewall to allow the required ports (TCP 135, 445, and the fixed port for WMI). But be aware that allowing incoming traffic on TCP ports 135 and 445 is dangerous (especially on a gateway system). So you should limit it to the public IP of your system to protect other systems in the local network. For security reasons it would be much better to use the local IP via VPN instead.
 
Share this answer
 

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