PDA

View Full Version : [Linux(/And windows?)]How to use real IP instead of the loopback?


WyriHaximus
12-23-2006, 10:01 AM
Does anyone knows how to change the IP the media center is using? Atm it uses 127.0.0.1 (the local loopback). Cause of that it only works on the local box instead of everything else on the network aswell.

msgyrd
12-23-2006, 01:17 PM
127.0.0.1 is a loopback address. You won't ever be able to access a host by typing in 127.0.0.1 into a Wii. Open a terminal window on your OS to check your IP (ipconfig and ifconfig). Whatever your IP address there is, that is your host IP. If your linux pc is connected via cat5 to your router, your IP will likely be listed under the eth0 device. Windows will list is as an "Ethernet adapter". I'm not sure what they're listed as if you connect your PCs via wireless, but just look for the IP addresses. 0.0.0.0 and 127.0.0.1 aren't going to work.

For example, you'll probably have something like 192.168.1.101 if you're connecting to a router. Whatever your computer's IP address is, you'll use that as the address on your Wii.

WyriHaximus
12-23-2006, 01:21 PM
127.0.0.1 is a loopback address. You won't ever be able to access a host by typing in 127.0.0.1 into a Wii. Open a terminal window on your OS to check your IP (ifconfig for windows, ipconfig for *nix). Whatever your IP address there is, that is your host IP.

For example, you'll probably have something like 192.168.1.101 if you're connecting to a router. Whatever your computer's IP address is, you'll use that as the address on your Wii.
Yes I know. But the server binds itself to my loopback and doesn't accept connections from my normal IP ;).

Your IP: 127.0.0.1
Media Center Web Address: http://127.0.0.1:8192
4 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger@bf2d5e via org.mortbay.log.Slf4jLog
410 [main] INFO org.mortbay.log - jetty-6.0.1
4417 [main] INFO org.mortbay.log - Started SocketConnector @ 127.0.0.1:8192

Red Kawa
12-23-2006, 06: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

WyriHaximus
12-23-2006, 06:43 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
I figured that out but since IP=192.168.1.5, ListenIP=192.168.1.5 and ListenIp=192.168.1.5 didn't work out I thought it was nothing. Can you tell me the correct line to add?

Edit:
Nvm got it it's IP=IP :).

Zharay
12-23-2006, 08:46 PM
Well if you got a router like Linksys, and you are willing to look for 3rd party firmware for it, then you could make your Wii connect to your internet IP. You have to have an option like Port Triggering to make it work. You tell the router to take any Port 80 requests and send it to the computer in the LAN that has the server on whatever the port that WMCX uses.

This makes it so that no mater where your Wii is, you can connect to your computer like as though it was a website. If people start using this like MySpace or something, we may see a sort of internet bonanza going where people share web addresses and such...