ARsim Delete all firewall rules for all AR000 instances
Option 1
- run wf.msc
- select Inbound Rules
- multiselect Name = AR000
- press Delete
Option 2
- run cmd elevated
- enter “netsh advfirewall firewall delete rule name=AR000”
ArSim Limitation on multiple instances
- IP services which are binding only to the IP of the simulation network interface can work with different target IP addresses when changed in the AS configuration. e.g. 192.168.0.1:5900
- IP services which are binding to all IPs on all network interfaces can not work with different simulation IP addresses as the PORTs would collide. e.g. 0.0.0.0:5900
(0.0.0.0 opens a socket for all network interfaces of the PC where it is running from)
You can check if a specific service binds a specific IP with the netstat command.
Netstat
- Start > cmd > Right click > Run as Administrator
- netstat -abn > C:\Temp\Netstat_log.txt`
In netstat a process which opens a port is found below the port in the list. (e.g. ArSIM Webserver)
Active Connections
Binding port not possible
In some cases binding a port might not be possible even though the port is not shown as used in nestat. This can be caused by so called excluded port ranges in Windows.
You can check which excluded port ranges you have with the command.
Licensing
A single 1TG4600.01 license will let you run any number of local ArSim instances indefinitely.
Mount folder as drive
If necessary you can mount folders as drives in Windows using the subst command.
subst F: “C:\Temp\USER”
To remove the drive again use the command:
subst F: /D
Portproxy forwarding
To forward localhost ports to external clients the portproxy port forwarding in Windows can be used.
- Open a admin command line window
- Add port proxy rule
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=80 connectaddress=127.0.0.1 protocol=TCP connectport=80 - Add firewall rule
netsh advfirewall firewall add rule name=“WebServer” dir=in action=allow protocol=TCP localport=80
To revert the settings you can enter the following commands
- Remove firewall rule
netsh advfirewall firewall del rule name=“WebServer” - Remove proxy rule
netsh interface portproxy del v4tov4 listenaddress=0.0.0.0 listenport=80 protocol=TCP