Unable to connect to server error

Hello everyone,
I’m new to K8s.
I keep getting these errors.
kindly assist me.
thanks

kubectl get pods -n kube-system
E0222 10:04:53.001887 2194 memcache.go:238] couldn’t get current server API group list: Get “https://192.168.49.2:8443/api?timeout=32s”: dial tcp 192.168.49.2:8443: connect: no route to host

kubectl api-resources
E0222 09:55:00.842753 2167 memcache.go:238] couldn’t get current server API group list: Get “https://192.168.49.2:8443/api?timeout=32s”: dial tcp 192.168.49.2:8443: connect: no route to host
NAME SHORTNAMES APIVERSION NAMESPACED KIND
Unable to connect to the server: dial tcp 192.168.49.2:8443: connect: no route to host

Check FW rules for port 8443.