Categories > Coding > HTML >
[Q] How to publish an localhost?
Posted
I mean yes,
I know I need a hosting. But what if I wouldn't want to get a hosting, and publish it all myself, and not with a help of some indian technologies? I'd like to get a domain somewhere too, I've found some free domains tho but they're not really working sometimes and i dont know how to redirect them to the localhost. if you are a good boi and you want to help the smol boi then please reply. mostly i think this question will have an answer for it wabz cuz he's a good web programming buddy ok thx bye
--- Chanity ---
UPCOMING ROBLOX EXPLOIT
Replied
download xampp for localhost and u start apache (change the port if it isn't working)
💕 Thanks for the rep: chr1srbx Monkey_D_Luffy Kanva Funtimesgetfunner Hiroku Vilictus Delta Rsploits Haxim kiwidevelopment Xero
Replied
@WendoJ bro im doing it already. that's why i am asking how to PUBLISH an LOCALHOST.
--- Chanity ---
UPCOMING ROBLOX EXPLOIT
Replied
@Zelorra When you say "publish a localhost" do you mean getting a website on a domain? I really don't suggest doing this at home because people can easily find your host IP. (even through Cloudflare)
Also, is English not your first language?
kais
Replied
@SUPERSMASHERBROS I havnt seen that pfp in a long time, resurrected from the dead I suppose?
Replied
@Shade_0122 Only for a little bit. Just wanted to check-in. Seeing plenty of new names.
kais
Replied
Your spelling is very confusing....
Replied
@SUPERSMASHERBROS are you the guy that commented on my alt's release of reconnect xp
I am a used-to-be programmer, now producer, rapper and artist
https://cdn.discordapp.com/attachments/593162491085979649/926285159047770152/visuals-000415636677-YGc9rS-t2480x520_1.jpg
Replied
@Simplicity_X bruh what's wrong with that?
--- Chanity ---
UPCOMING ROBLOX EXPLOIT
Replied
@Zelorra can hardly read it
Replied
@Explanation If the thread was recent, then no. I haven't been on this site for almost a year. I'm not really sure what you're talking about.
kais
Replied
@SUPERSMASHERBROS it was on december 2019, so no
I am a used-to-be programmer, now producer, rapper and artist
https://cdn.discordapp.com/attachments/593162491085979649/926285159047770152/visuals-000415636677-YGc9rS-t2480x520_1.jpg
Replied
get a web host vps or something that can run it
examples:
Github Pages (free, reccommend)
000webhost (free, not the best but can run dynamic webpages i.e: php)
Hostinger (free full domain, hosting paid monthly)
Before I direct you there, let me try to get your head away from self-hosting.
Reason #1: If you do not use the correct protection you can expose your home IP address by somone doing 'dig domain.com' on it.
Reason #2: Your ISP may have restrictions on self-hosting.
Alright now to the self hosting. You need server software like XAMMP to be able to do this. Install it and I would recommend for you to check every install component for the most functionallity. Install it to a directory. Remember that directory. When finished, open its control panel. Look for the Apache module and click start. Your website is up and running at 127.0.0.1 or localhost. You now need your computer's local IP. This can be done by typing 'ipconfig' in the command prompt and looking for your wifi/ethernet adapter IPv4 address. It should start with '192.168'. This should work just like localhost. Check it. https://streamable.com/xqhmbq (If a kid tries to boot this local ip address then i'll laugh because you need a public ip)
Your router may change this address dynamically so you might have to make your computer's local IP address static. It's as easy as googling it up so I won't get into it.
Okay now we need to introduce your computer to the internet. You can find out how to do this for your router model at https://portforward.com/router.htm.
Here's a sample portforward page:
https://i.imgur.com/3Sa5YAK.png
So what you want to do is to leave the external IP address alone BUT change ALL the ports to 80 (HTTP). Now remember that local IP address we got? Put that where it asks for the local IP. If it asks for a protocol you should do both TCP and UDP just in case. Make sure it's enabled then add another one but this time with port 443 (HTTPS).
Now go to https://icanhazip.com to get your public IP address (make sure your server is running and you are not using a vpn or proxy that masks the IP)
If you navigate to the IP address it gives you and it goes to your website then congrats you did it. For domains i use http://www.freenom.com/ and I would cloudflare (so you dont reveal ur ip + free ssl) with the DNS A record for @ and www to the public IP address over proxy. You can find out how to do this yourself, it's not hard. https://kid-there-is.nothing-to-see-he.re/lGD5xO
Then navigate to your domain and it should work as long as the server is up. Okay now when you installed XAMPP we had that directory we installed it to right? Well go inside that directory and find the htdocs folder. That's where you will put your website.
thanks everyone for rep even though i don't need it lol
Replied
@RealNickk the xampp things and the htdocs i knew already but thanks so much bud, i would +rep u but im broke lol
--- Chanity ---
UPCOMING ROBLOX EXPLOIT
Replied
I would not recommend using xampp for running your own apps forever using your pc. Use a vps instead. Linux is preffered. You can set custom domains and other stuff and has staff maintenance. I would recommend aws lightsail because it's easy to work with or you can also use something.host :)
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )