can i force connecting to local web server via internet network ?

Hello all
this is general question , if i have web server installed in my local pc and i have client that connecting to that web server
can i force it always to go via the internet network ?
the reason im asking is .. that im noticed when i close my internet connection i still can connect to my web server.

Use Bind and/or Listen directives, if you are using Apache. Have a look at your Web server documentation on how to bind to an specific IP address.
Regards.

i did bind it to my static ip ( not localhost )
and set it with custom port