Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Cannot connect to apache2 using hostname from other devices  (Read 4652 times)

0 Members and 1 Guest are viewing this topic.

TheWaffle

    Topic Starter


    Hopeful
  • Thanked: 4
    • Yes
  • Computer: Specs
  • Experience: Beginner
  • OS: Linux variant
Cannot connect to apache2 using hostname from other devices
« on: February 01, 2016, 08:33:27 PM »
So I have lamp running on my desktop. I cannot connect to it from my phone unless I use its ip rather than its hostname.
http://hostname
doesn't work but
192.168.2.15 does.
Any ideas?
I think my iptables are screwed up buy idk.

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Cannot connect to apache2 using hostname from other devices
« Reply #1 on: February 01, 2016, 10:21:04 PM »
Why is it a problem? You got it to work.
I think I know how to fix this, but you will get better support from the Apache users.  Check around on either the Ubuntu chat room or on of the many Apache groups.
Try this:
http://www.apachelounge.com/
or
http://httpd.apache.org/docs/2.0/faq/support.html

The link below might be helpful if you already have some knowledge of Apache and are using either Debian or Ubuntu.
https://www.rackspace.com/knowledge_center/article/set-up-apache-virtual-hosts-on-ubuntu

Hope that is of some help.   :)