Firewall TCP Port on Win'98

Hi,
Is there any way on Windows'98 to hide or forbid some TCP Port for remote
access, if it  necessary to use only from programs on the local computer.

Thank you!