Hi
The IPs of the switch and the management PC should be in the same IP subnet.
If there are multiple VLANs on the switch, it has to be checked in what VLAN is configured the management IP. Then you have to check which ports belong to this VLAN and connect your PC to one of them.
You have to check whether the management is restricted to certain IP addresses, like authorized IP f.e.
Or whether web-management is disabled.
The best answer could be provided if you could paste the output of show running-config