• Ok so I have a major issue and I think I know what the problem is but not how to fix it. So my wordpress site is hosted off my own computer. Due to that, when I go to the site the page addresses always start off like this: http://localhost/wordpress/

    I have no problem looking at any part of the site but when ppl connect that arent on my network, their addresses also show up as http://localhost/wordpress/, which causes their browser to think that they are trying to access the site as if it was hosted on their computer.

    To fix this I thought that I could change the WordPress and Site address (URL) from “http://localhost/wordpress” to “http://bigbass1997.info.tm/wordpress”. Once I changed that it no longer let me connect from my computer since it would try to take me to http://bigbass1997.info.tm/wordpress, which would cause it to send me to my modem control panel. This is due to the fact that my domain name is the same as my IP (duh) which is how I access my modem’s config panel.

    I had to get my trusted friend to log on and change the URL’s back to what they were. If someone has a fix to this please please tell me!

    -bigbass1997

Viewing 15 replies - 1 through 15 (of 21 total)
  • … which causes their browser to think that they are trying to access the site as if it was hosted on their computer.

    Yes. That is what ‘localhost’ means.

    Once I changed that it no longer let me connect from my computer since it would try to take me to http://bigbass1997.info.tm/wordpress, which would cause it to send me to my modem control panel.

    Of course it does. If you try to access a site on a public address you are going to connect to the public address over the internet, even if it is hosted on your computer. When you try to connect, if the address isn’t ‘me’– aka, localhost or the equivalent– you computer will connect to the internet and ask a name server for the IP matching that domain name.

    This is due to the fact that my domain name is the same as my IP (duh)

    No it isn’t. Your IP address is a number, your domain name is not. Don’t confuse the two. It will get you in trouble. The two are associated via the DNS registration system but they are not the same.

    Hosting a site like you are is dangerous. If someone hacks your site, they hack your computer— email, credit cards, bank records, passwords, everything. But if you are going to do it you can try to adding an entry to your ‘hosts’ file. However, I am not sure if you will end up creating a weird loop by doing that, since your server will use the hosts file when connecting. In fact, I suspect that you will create problems but give it try. Its no fun until you start breaking stuff.

    Thread Starter bigbass1997

    (@bigbass1997)

    When I said that my domain name is the same as my IP I ment that the domain redirects to my IP so its as if I was just typing in my IP. Also I know that it can be dangerous. I’m not an idiot with computers or the internet, but I don’t know everything.

    Other than that you just told me just about everything I already knew. The link you gave me doesnt tell me anything useful. All it does is explain what the HOSTS file does, which I already knew.

    I was thinking that maybe I could add an IF statement somewhere that redirects ppl connecting from 127.0.0.1 to the localhost address and anyone else to the bigbass1997.info.tm address. But I dont know how I would do this if it was even possible.

    Anyone know a good way of fixing my problem?

    When I said that my domain name is the same as my IP I ment that the domain redirects to my IP so its as if I was just typing in my IP.

    Then you should say what you mean, not what would be understood if people could read your mind.

    Other than that you just told me just about everything I already knew.

    Again, my apologies for not being able to read your mind.

    All it does is explain what the HOSTS file does, which I already knew.

    And again with the mind reading…

    You do realize that I don’t know who are or what you know?

    You are trying to do something a little bit weird and I think your hosts file is one of your only options. Have you tried that?

    Can you disable WAN configuration on your modem? That is a good idea anyway but it may also prevent problem you were having with hitting that config interface instead of the site.

    Have you forwarded the appropriate ports on your router?

    Connecting to localhost will take you to your router control panel, unless you forward your web ports to the appropriate computer on your network

    do you have a domain name registered?

    If you do, then you need to get a DNS service so that when someone looks up your domain name (types it in a browser) it resolved to your IP address.

    This is one I used back in the day, I think it’s still free.

    http://www.zoneedit.com/

    Other than that, the only way someone is gonna access your computer remote is through your IP address. AND if you want to serve them pages, you have to be listening on the http port 80. This means you need to open your firewall on that port. Not a big deal.

    Not a big deal

    Right! As long as your ISP supports that, most don’t… unless you’ve specifically bought commercial internet, you’re probably violating their TOS. And as long as your network is isolated – you wouldn’t wanna get hacked and lose everything connected to your network. And as long as you are a network security guru so you can secure that box…..

    So many things to consider. I ran a personal site off of an extra computer for a bit… once I learned a bit more, I closed off them ports and got rid of it. Waaay too much to consider.

    as long as your ISP supports what? opening port 80? They only thing your ISP can do is filter the port. If that is the case, you reroute the request with a dynamic dns service.

    someone who is developing a local web shouldn’t need the hacking advice either.

    Anyways, this isn’t really a WP issue, so w/e

    Thread Starter bigbass1997

    (@bigbass1997)

    Yes I have a domain name registered (http://bigbass1997.info.tm/) and I have all the needed ports forwarded. (TCP Port 80)

    Also no matter what port you forward it wont fix my problem. When you forward a port on your modem/router, it only works for those outside your network. That is why there is such a thing as localhost, for anyone using the computer that is hosting the service. Please read my first post to understand my problem. It has nothing to do with my ports since ppl are able to connect to my site, just not the WP part of it.

    as long as your ISP supports what? opening port 80? They only thing your ISP can do is filter the port. If that is the case, you reroute the request with a dynamic dns service.

    That is not all your ISP can do. DynamicDNS service or not, your ISP knows (if they care to) what kind of traffic is running on their network and can suspend or cancel the account. I am aware of this happening to a couple of different sites that were hosted on PCs at home. Again, whether they care enough to take action is another question.

    like I said, if your isp is going to complain about traffic on port 80, or block it, or threaten to cancel your service over port 80 traffic, then you route your traffic through a different port.

    What are they going to do block every port? lol

    btw,

    `”You also may not exceed the bandwidth usage limitations that Verizon may establish from time to time for the Service, or use the Service to host any type of server.”‘

    All those evil gamers out there violating TOS. lol

    Thread Starter bigbass1997

    (@bigbass1997)

    OK i guess I will say it again. THE ISP IS NOT MY PROBLEM! So please just help me with the first problem. When I access my site through localhost it works fine but when others go to it, the site tries to make them use the localhost address instead of the domain name. I know that this a the problem because people are able to visit the rest of my site without a problem. The problem only happens on any part of the WordPress part of the site.

    bigbass, you need to make the url in wordpress be the real url and not the localhost url so that others can see your site and the links work properly from external.

    you need to figure out why your computer is resolving your real url to your router login page.

    sounds like bad host file or maybe bad port forwarding.

    Thread Starter bigbass1997

    (@bigbass1997)

    I think the reason that when I change the WP URL to the real URL, that it doesnt work for me, is because it would be as if I typed in my IP into the address bar instead of the domain. Which is another way to access my modem configuration page.

    ok do this

    http://www.bobborst.com/tools/whatsmyip/

    what is the internal and external ip addresses you end up with?

    Thread Starter bigbass1997

    (@bigbass1997)

    int. IP: 192.168.254.14
    ext. IP: 74.44.210.174

    The domain name points to the ext. IP and the port forward (port 80) points to my int. IP.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘WordPress URL Problem’ is closed to new replies.