Open MeloriTensei opened 5 years ago
No-IP has a port 80 redirection service.. You can run apache server on any port and still connect via port 80 externally. Just writing it down in case if it's any help.
@Anjum9694 It's good to leave a small info. The case scenario for my workaround is most likely for those who use Cloudflare, which at many times fails at tunneling at any other ports LISTED supported on the http port for my case. (Not sure where I've done wrong lul)
Presumably, the webservice refused to get to the public because it is stuck on localhost, which is what I faced in the process. I've did some research on a workaround for this. I didn't want to host Uberstroke WS on port 80 because my Apache web server is on port 80 and it would clash. So, I thought: why not host on other ports on localhost BUT have Apache to REVERSE PROXY it.
To begin, we need to make sure that the service_base line in main.json file, you set the domain to: http://localhost:82/ (or whatever port that is other than 80 because Apache is gonna use 80)
(Friendly reminder: Remember to set the game and comms server in the servers.json file to your external ip like usual, or even dynamic hostname if you prefer)
If you happen to have a virtual host (or newbie's words: web site) hosted on the root domain (www.example.com), then you'll want to follow the same train as I am as I ALSO have a website up on the root domain.
To do this, open up httpd-vhosts.conf (from the extra folder) or httpd.conf (on the root of conf folder) and add in this following line at the end and save:
Launch the Uberstrok Web Service and the photon server, then launch Apache server. If you run into issues relating to Apache, please consult "Mr. Google" for assistance (there's a large community that can help).
Now, change the address on your .uberstrok file (and maybe your friends as well) into the following: http://uberstrok.(your address)/2.0/
And enjoy :)