why isn't "localhost" a valid server name?

Discussion in 'General Support' started by citizenkeys, August 23, 2009.

  1. citizenkeys

    citizenkeys Portal Pro

    Joined:
    May 17, 2009
    Messages:
    187
    Likes Received:
    16
    Ratings:
    +16 / 0
    Home Country:
    United States of America United States of America
    Why isn't "localhost" a valid TV server name?

    i had a real bad experience earlier with TV server...
    TV Server was set to use an i.p. that I had been using from a DHCP server.
    But the i.p. hadn't changed in so long that I didn't notice.
    Well the i.p. from the DHCP server changed and so TV server wouldn't start.
    MediaPortal kept saying I had "no free card" to use to watch tv.
    An hour later, I had to finally go into MySQL config and change the i.p. of the tv server to use the new i.p. address.

    Since the TVServer and MediaPortal are on the same machine, using "localhost" as the tvserver would always use whatever i.p. my computer has.

    :mad:


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. joz

    joz Portal Pro

    Joined:
    March 17, 2008
    Messages:
    1,353
    Likes Received:
    153
    Occupation:
    J2ME / PHP programmer
    Ratings:
    +154 / 0
    Home Country:
    Netherlands Netherlands
    Hey citizenkeys,

    I do not know why, because that's a question you should ask a dev but I can comeup with 2 solutions for you;

    1) Use 127.0.0.1 (internal loopback IP, same as localhost)
    2) Use a static IP address for your (TV)server.

    Me personally would go with option 2. A server should have a static IP, DHCP is just for users who don't know anything about networks or just for convenience (like when devices get connected constantly to the LAN).
    A server should just have a proper setup and be left alone. A part of that is having a static IP.
     
  4. funkstar
    • Premium Supporter

    funkstar Retired Team Member

    Joined:
    August 9, 2005
    Messages:
    771
    Likes Received:
    27
    Location:
    Home
    Ratings:
    +27 / 0
    Home Country:
    Scotland Scotland
    Or give MP the name of the PC instead of the IP.

    For example my old Mediaportal box was called MPServer, thats what the MP front end connected to. Now it is TheCulture :)

    Another option, and this is also recomended, is to have your router statically asign a specific IP through DHCP. Basically whenever a specific MAC address requests an IP it always gets the same one.

    makes trouble shooting much easier, and still allows you the easy of setup and flexability that DHCP gives you.
     
  5. citizenkeys

    citizenkeys Portal Pro

    Joined:
    May 17, 2009
    Messages:
    187
    Likes Received:
    16
    Ratings:
    +16 / 0
    Home Country:
    United States of America United States of America
    when i put in a computer name, tv-config automatically changes the computer name name to an i.p.

    127.0.0.1 works.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!