Is there an application to block access to a remote machine (to simulate a disconnection)?

86 Views Asked by At

Is there some application (with GUI) that enables me to temporarily block access to some remote machine?

My code accesses a remote folder, and I'd like to simulate disconnection of couple of seconds to that server.

I don't want to play with shared folder on the remote or start playing with my machine network configuration which is more complicated.

1

There are 1 best solutions below

1
On

You could modify your hosts file to point this name to nonexistent IP.

It's here: C:\Windows\System32\drivers\etc\hosts