PDA

View Full Version : Localhost instead of my IP


krapo
12-23-2006, 05:06 AM
Hi,

The software looks great, i can't wait to try it, but i can't get to make it work properly.

I run linux, and when i launch the mediacenter, the messages in the console say my ip is "localhost". From my pc, i can access the mediacenter typing http://localhost:8192 but not when y replace "localhost" by my ip. It doesn't work from the wii either.

Can anyone help?

Newfs
12-23-2006, 08:44 AM
localhost represents the computers address that you are currently on. So if your Wii understand localhost then your Wii would be trying to find that page on your Wii.

Im not up on Linux but you need to find out how to get your IP on the computer you are hosting Media Center with. In windows you can go to the command prompt and type ipconfig, in Linux? Try Google.com to search for Linux get my IP address. Im sure its easy enough to get.

Good luck

krapo
12-23-2006, 11:58 AM
Thanks for answering.
In fact i know my ip address, and if y replace "localhost" with it, i can't access the mediacenter, even from the pc running it.
And i read somewhere than the program was supposed to indicate the ip address, and here it doesn't, it just says "localhost" instead. I'm not sure if this is normal.

Newfs
12-23-2006, 12:17 PM
are you adding the :8192 at the end of your IP?

Red Kawa
12-23-2006, 05:35 PM
There were issues with IP detection under Linux. please see our blog post about version 0.92:
http://www.redkawa.com/forums/showthread.php?t=127

krapo
12-24-2006, 01:34 AM
Ok that's exactly the kind of info i was looking for, thanks!
Now, "Linux users: WiiMCX cannot detect the computer's actual IP address properly due to a "feature" of Java. You must find out your IP and manually add it to the webserver.prop file in order to override WiiMCX's IP detection feature."
What should i type exactly in webserver.prop? Something like "ip=192.168.0.15"?

krapo
12-26-2006, 02:17 AM
please, i just need to know the line i have to add in the file...

defrex
12-27-2006, 01:52 PM
I'll test this when I get home, but I'm fairly sure you just set line 2:

IP=192.168.1.101

Or whatever your ip is.

dc3fanboy_nl
12-27-2006, 02:01 PM
Hi,

The software looks great, i can't wait to try it, but i can't get to make it work properly.

I run linux, and when i launch the mediacenter, the messages in the console say my ip is "localhost". From my pc, i can access the mediacenter typing http://localhost:8192 but not when y replace "localhost" by my ip. It doesn't work from the wii either.

Can anyone help?

Maybe you must open your ports 8192 in your router.

krapo
12-27-2006, 02:15 PM
Thanks for your answers, but i've opened the port and i've tried "ip=".

The wierd thing is thai i've changed the value of the port in the file, for testing purposes, and it didn't change when i launched the app.

Anyway, what i need right now is the exact syntax to tell the program what my ip is.

clay
12-28-2006, 08:08 AM
Thanks for your answers, but i've opened the port and i've tried "ip=".

The wierd thing is thai i've changed the value of the port in the file, for testing purposes, and it didn't change when i launched the app.

Anyway, what i need right now is the exact syntax to tell the program what my ip is.

Reading other threads on the topic is your friend:
http://www.redkawa.com/forums/showpost.php?p=339&postcount=5

krapo
12-28-2006, 09:44 AM
Yeah, i think i read every post of this part of the forum looking for an answer, including this one, which says "IP=192.168.1.5, ListenIP=192.168.1.5 and ListenIp=192.168.1.5 didn't work out". And i tried anyway, it didn't work out either.

I just don't really get the edited part "Edit: Nvm got it it's IP=IP", does it mean i should add "IP=IP" exactly or "IP=<insert IP here>"? Anyway, i tried both, it didn't work...

ghztew
12-29-2006, 11:40 AM
Here are the instructions for getting it to work under linux:

*Note* I am using Ubuntu Edgy Eft.

Unpack the tar package into a directory.

Determine what your actual IP address is. You can do this by:
Click on System->Administration->Network Tools

Under devices, change the network device option from Loopback device (lo) to the ethernet card you are using. Under IP information you will now see your local IP address.

Browse to the folder where you unpacked the mediacenter files, and use a text editor to edit the webserver.prop file.

Change the second line, IP=Default to:

IP=192.168.x.x (enter your local IP address you noted from earlier)

Save the file

Open a command prompt and go to the mediacenter directory and enter:

$ java -jar MediaCenter.jar

Load up your Wii Opera browser and enter:

192.168.x.x:8192 (use the IP you recorded from Network Tools and entered into webserver.prop)

You should now see the media center start page.

krapo
12-30-2006, 03:27 AM
Ok, first i want to thank all of you for trying to help me, it's very nice to get assistance when you need it.

But i followed every step of every post, and nothing works. So finally i think i'll post exactly what i have and what i get.

Here's the content of my webserver.prop file:
[QUOTE]ListenSocket=8192
IP=192.168.1.111

When i launch the program, the terminal delivers this message:
Wii/PS3/Red Kawa Media Center X 0.91
Media Center User Guide URL: http://www.redkawa.com/mediacenters/tutorials/
Red Kawa URL: http://www.redkawa.com
Your IP: localhost
Media Center Web Address: http://localhost:8192
3 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger@e0e1c6 via org.mortbay.log.Slf4jLog
309 [main] INFO org.mortbay.log - jetty-6.0.1
3256 [main] INFO org.mortbay.log - Started SocketConnector @ localhost:8192

So, i can access the mediacenter from my pc, not from my wii, by typing http://localhost:8192, but that's not what i want to do, right? If i type http://192.168.1.111:8192, the page doesn't load. It seems the problem comes from the fact that the media center seems to believe that my ip is "localhost", but i can't seem to figure out how to let it know what my ip really is. And as a test, i've tried to change the value of "ListenSocket" in server.prop, but then the value doesn't change in the terminal message, it feels like the program doesn't even read the file webserver.prop.

Ok i think my message was understandable enough, and again, thanks for trying to help me.

dannydyer1000
12-30-2006, 01:17 PM
Maybe you must open your ports 8192 in your router.

You shouldn't have to port-forward with this as there's no outside connection. Normally, all ports are available through internal networking.

dc3fanboy_nl
12-30-2006, 01:28 PM
You shouldn't have to port-forward with this as there's no outside connection. Normally, all ports are available through internal networking.

Oke thank you for your comment, now I know that. Thanks :)

spo0ner
12-31-2006, 01:11 AM
If you have tried all the suggestions and still have no success then I would start to look at the system itself.

Many problems with Linux usually stem from security so I would check first to see if you have a firewall installed (or check your iptables if you configured that manually).
I would also check to make sure the permissions aren't jacked in your configuration.
Do a "ls -l" (without the quotes of course) in the directory the webserver.prop file is located and make sure they aren't set to the owner as "root" and make sure they are read/writeable.
If you need to change permissions on the files you can do it by being in the directory where the .prop file is and use this command "chmod 744 *" and see if that helps to resolve the issue.