Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks, but i already forward 80 to my host, and my main question is, can i NOT get a domain name and just have people connect through IP? This is really just a fun little project of mine, i already have a real website with real hosting.
Yes, you can have people just connect by IP, as long as you only intend to have 1 site. You would just send them to http://12.34.56.78 and notify them every time your address changes. Not an appealing option, unless you have good luck with keeping a constant address.
Most modem/routers have a firewall and in order to host a site you need to allow requests through port 80 and you also need to tell the router to forward requests to the hosting server.
Is it a modem or a router? If the former it should be working.
If you have a router you need to go to the configuration page and forward port 80 from the WAN side to the IP address of your server, port 80. Your server also needs to have a static IP if it does already nevermind, if it doesn't you can configure the router to assign the same IP to your server all the time, or configure your server to have a static IP, if your going to do the second then give it an IP with the subnet mask but outside of the dhcp pool that the router uses for assigning IPs to computers.
EDIT: PS; what have you already done, set up the firewall on the server or configured your router?
OK. I have a modem and a router. I already forward 80 to the host machine with a static lan ip. I am not aware of any firewalls anywhere unless the MODEM has one. If it does can i disable it. I know the risks yeah yeah...or just tell the modem to allow port 80 to go to the router? Should i need to do that.
PS!!!! on windows i run a game server and people connect and play all the time.
Originally posted by IanThePetRock OK. I have a modem and a router.
Most adsl modems are modem/routers. i.e. does it have a an ethernet connection? An additional router may not be necessary. But if you have a router and modem router then both routers will have to forward requests.
also, someone go ahead and try now, i downloaded this thing a while ago called Easyphp so i could test my php locally, it has an apche server, this is on windows, i forwarded 80 to the windows computer and it works for me.
Maybe your ISP has blocked access to port 80, some will do that if they don't want you running a website. Try making forwarding say port 54321 from your router to port 80 of your server, then you can try accessing your website like this: http://123.123.123.123:54321
Read the terms of your ISP's service agreement, it may be against their policy for you to run a wesbite of any sort
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.