• How Does the GMod Web Browser Work & How to Print IP
    3 replies, posted
Hello! I was wondering, how could I make a lua script that prints out the IP of a web page that the user is trying to load with html.OpenURL(). I've got a problem that I don't understand and nobody else really does, MoTDs won't load local web servers on HTTPS. However, everything loads fine for everybody outside of the MOTD, I suspect the server grabs the IP of the website and then sends the client that info to open it, but I need a way to verify. Because if that's how it works, then I could setup my firewall to work with that and give out proper IPs. Here's a more detailed post on my issues and all the struggles & troubleshooting I've went through How Do MoTDs Capture Websites? Summary: >Only seems to effect MOTDS >Can't load any websites that is ran on my network through the external IP on an HTTPS connection >It loads just fine, the same site, on HTTP >If you open the same site in HTTPS in the Steam Browser, it loads just fine. >Loading screens work fine on HTTPS from the same web server & domain >Doesn't worn for ULX, NovusMOTD, or FancyMOTD >Everything suddenly works fine if it's routed via Cloudflare proxy >Seems like a NAT Reflection problem but clients fetch the HTML themselves, not the server? Thank you!
The current version of gmod uses an outdated version of Awesomium while the Chromium branch uses Chromium. The chromium branch will probably not be live any time soon
My guess is that it's a security feature to stop servers from attempting to do something nasty like changing your router settings. Of course, if other in-game methods can load the page just fine, then it really isn't securing a damn thing.
I'm trying to see what IP the web browser is trying to load ingame so I can try to find out why people's pages won't load if they're hosted on my web server on a GMod server hosted on my network. It only seems to happen to HTTPS, it's incredibly confusing. Panel/OpenURL I looked around on the wiki for a function that might be able to do that but I came short, I don't understand Lua too well. My suspsicion originally was they're getting an RFC1918 IP like the webserver's 192.169.169.1 but if that were the case then I assume I should be able to see it, except I don't think the GMod web browser loads pages that don't have a valid SSL and if it tries to contact web pages with incorrect IPs then the SSL won't work. That's all provided if it's an IP issue, which is what I want to find out. Thank you for the response, apologies for taking so long to respond.
Sorry, you need to Log In to post a reply to this thread.