I wonder if is possible to use wifii only for specific address, maybe configured on some file. As I'm often behind a firewall, my need is to bypass this check by switching under an alternative network , through a mobile hotspot for example. Is it possible by your knowledge?


You can utilise the route command.

For example:

route -p ADD METRIC 1


  • route is the comand name
  • -p is attribute which will make it persistent throughout reboots
  • ADD is attribute for route creation
  • is your target IP
  • is Default Gateway of your WiFi adapter
  • METRIC is something like priority, lower is greater
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.