Forums > HTML >

[Q] How to publish an localhost?


Zelorra

veri pog boi

Posts: 141

Threads: 15

Joined: Feb, 2021

Reputation: -7

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

WendoJ

WendoJ

Posts: 287

Threads: 30

Joined: Mar, 2020

Reputation: 7

Replied

download xampp for localhost and u start apache (change the port if it isn't working)

a

 

stop suing me for 1 indonesian rupee

Zelorra

veri pog boi

Posts: 141

Threads: 15

Joined: Feb, 2021

Reputation: -7

Replied

@WendoJ bro im doing it already. that's why i am asking how to PUBLISH an LOCALHOST.

--- Chanity ---

UPCOMING ROBLOX EXPLOIT

Posts: 426

Threads: 0

Joined: May, 2017

Reputation: 7

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

Shade_0122

Loli Protagonist

Posts: 1478

Threads: 98

Joined: Jun, 2020

Reputation: 19

Replied

@SUPERSMASHERBROS I havnt seen that pfp in a long time, resurrected from the dead I suppose?

My non skidded siggy

Posts: 426

Threads: 0

Joined: May, 2017

Reputation: 7

Replied

@Shade_0122 Only for a little bit. Just wanted to check-in. Seeing plenty of new names.

kais

Simplicity_X

The Expert

Posts: 414

Threads: 73

Joined: Jul, 2020

Reputation: 2

Replied

Your spelling is very confusing....

Posted using WRD Android app

Explanation

Outflown

Posts: 786

Threads: 146

Joined: Nov, 2020

Reputation: 3

Replied

@SUPERSMASHERBROS are you the guy that commented on my alt's release of reconnect xp

WRD is pretty cool
Robloxscripts: Outflown
listen if your cool: https://open.spotify.com/artist/4S4qzAkE81ITXnjHBQyK5C?si=HZbipX7DQVKWQm8BFrg3tg

Zelorra

veri pog boi

Posts: 141

Threads: 15

Joined: Feb, 2021

Reputation: -7

Replied

@Simplicity_X bruh what's wrong with that?

--- Chanity ---

UPCOMING ROBLOX EXPLOIT

Simplicity_X

The Expert

Posts: 414

Threads: 73

Joined: Jul, 2020

Reputation: 2

Replied

@Zelorra can hardly read it

Posted using WRD Android app

Posts: 426

Threads: 0

Joined: May, 2017

Reputation: 7

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

Explanation

Outflown

Posts: 786

Threads: 146

Joined: Nov, 2020

Reputation: 3

Replied

@SUPERSMASHERBROS it was on december 2019, so no

WRD is pretty cool
Robloxscripts: Outflown
listen if your cool: https://open.spotify.com/artist/4S4qzAkE81ITXnjHBQyK5C?si=HZbipX7DQVKWQm8BFrg3tg

OpenGamerTips

aka H3x0R (im slow)

Posts: 1881

Threads: 127

Joined: Feb, 2020

Reputation: 13

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:

 

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.

H3x0R#4231 (GitHub, Script Repo)
I am a general reverse engineer that enjoys hacking a lego game.

Languages: Lua (Experienced), C++/C#/PHP (Intermediate)

Don't DM me to ask me script kiddie questions.

Zelorra

veri pog boi

Posts: 141

Threads: 15

Joined: Feb, 2021

Reputation: -7

Replied

@OpenGamerTips 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

MaximusExploit

Maximus

Posts: 875

Threads: 33

Joined: Aug, 2020

Reputation: 16

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 :)


Next >>>