Alright, I've been trying to find an answer for a long time now. I found documentations on how to access a webserver internaly and externaly, but here's my problem.
By the way, all websites names and IP adress are not real ;)
I've got a webserver hosting a website, let's say portal.com. I've got a website on a webhosting website too, called school.com. On school.com, there's a link to access portal.com, but the link looks like that :
For local access : 192.168.X.X/portal/... For public access : 201.43.X.X/portal/...
the domain name school.com is registered with the web hosting company, and they programmed something so that when people write portal.school.com, they access portal.com, whether they are on our network or at home.
It worked fine on web browsers, but we started using an app to access portal.com and the way it was configured does'nt work. I'm not sure how they configured it, but I can recall they wrote a command line that would do this : if IP_adress is similar for 192.168.X.X, do that and if it's something like 201.45.X.X, do that).
With everything I read, I'm now more lost than I was before. I saw documentation about DNS split or NAT reflection and other stuff like that...
I really need help.