Update: Michael, please listen to be very carefully. You SAID, and I quote "I have set up a server using a free hosting service and it works fine." I assume you understand what you said. You have no choice, but to use WHATEVER was given to you.
I clearly said to you in ENGLISH what you have to do. If you don't understand what I said, then there is nothing I can do about it. YOU CANNOT USE YOUR IP. You are using someone else's server, so you have no choice, but to use whatever was given to you, and not your own ip address.
Is there any way that users could instead type in my public IP and be connected to that server? No.
Michael, I think I understand what you want to know.
"but for example, if someone typed in my IP in a web browser, they would be redirected to my website (which is not in my network)"
If someone typed your ip, then they would be trying to access your network. Your better off using someone else's ip, server, and you put your website on a server that's not used with your network.
You won't have to concern yourself with making any redirections if you take my advice.