LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 07-24-2006, 04:29 PM   #1
veritas
Member
 
Registered: Aug 2003
Location: Dallas,TX
Distribution: Ubuntu Server, Slackware, Red Hat 6.1
Posts: 241

Rep: Reputation: 30
DISCUSSION: Connecting to XBox Live through a linux computer connected to a wireless LAN


This thread is to discuss the article titled:
Connecting to XBox Live through a linux computer connected to a wireless LAN

Quote:
Introduction This is a common setup for Xbox users. You have a computer, TV and Xbox in one room, and a wireless router on the other side of the home. A logical option, besides buying an Xbox wireless adapter, is to connect your xbox to a PC that is connected to that router. In my opinion, is just as easy to get this working in Linux as it is in Windows. Assumptions 1. You have a WLAN card and a regular LAN card installed 2. Both have working drivers installed 3. You can connect to the router with the wireless card and access the internet without problems
 
Old 02-12-2007, 04:53 PM   #2
Nergar
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Great tutoria

hey, great tutorial you gave me one more reason to erase my XP partition.
only one thing. when i test my xbox live connection i have a NAT error, it shows MODERATE. Do you know what can i do to fix this, when i connected through XP i didn't have this error.

thanx
 
Old 12-14-2007, 05:04 PM   #3
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
He forgot to tell how to Port Forward the Xbox live connection. Here is what you need

Code:
 $IPTABLES -t nat -A PREROUTING -i $WAN_IF -p tcp --dport 3074 -j DNAT --to-destination $XBOX_IP
   $IPTABLES -t nat -A PREROUTING -i $WAN_IF -p udp -m multiport --dports 88,3074 -j DNAT --to-destination $XBOX_IP
   $IPTABLES -A FORWARD -i $WAN_IF -d $XBOX_IP -p tcp --dport 3074 -j ACCEPT
   $IPTABLES -A FORWARD -i $WAN_IF -d $XBOX_IP -p udp -m multiport --dports 88,3074 -j ACCEPT
Make sure you set the variables appropriately
 
Old 08-19-2008, 08:55 PM   #4
troubledlinuxuser
LQ Newbie
 
Registered: Aug 2008
Location: Houston,TX
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Question making it permanent

it wont seem to stay permanent can some one please help me?
 
Old 08-20-2008, 01:01 AM   #5
Nergar
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by troubledlinuxuser View Post
it wont seem to stay permanent can some one please help me?
What distro are you using?

I think I used /etc/rc.local in ubuntu.

Last edited by Nergar; 08-20-2008 at 01:02 AM.
 
Old 08-20-2008, 01:04 PM   #6
troubledlinuxuser
LQ Newbie
 
Registered: Aug 2008
Location: Houston,TX
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Distro

im using Ubuntu. but rc.local has no effect, i can type it into my terminal get it to work but then after i turn off my computer it never works again.

also could ndis wrapper have any affect on this?

Last edited by troubledlinuxuser; 08-20-2008 at 02:18 PM.
 
Old 08-21-2008, 11:27 AM   #7
Nergar
LQ Newbie
 
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
I don't think ndiswrapper has anything to do but I can't be sure.

Did you tried creating a script in your /home directory and executing it with rc.local?

/home/daniel/xboxnet.sh:

Code:
#!/bin/bash
ifconfig eth0 up
ifconfig eth0 192.168.2.1
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o wlan0 -s 192.168.2.0/24 -j MASQUERADE
and /etc/rc.local:
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/home/daniel/xboxnet.sh
also make sure nm-applet is not messing with eth0

NOTE: both files need to be executable.
 
Old 08-30-2008, 04:02 PM   #8
troubledlinuxuser
LQ Newbie
 
Registered: Aug 2008
Location: Houston,TX
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Hey! thanks it works now!!!
 
Old 07-08-2009, 12:38 AM   #9
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Well, I guess I'm the lone soul who this doesn't work even the first time. I don't get any errors upon entering the commands, but when I test my Xbox Live connection, it says there were errors and that it could not reach the xbox live servers or Xbox.com. When I set the DNS to manual and to the address of the laptop (192.168.2.1, like in the tutorial) it hangs for a while and then gives a different error.

Would be great if I could get this to work! Any idea of how to fix it would be nice!
 
Old 07-08-2009, 12:46 AM   #10
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Quote:
Originally Posted by WarTurkey View Post
Well, I guess I'm the lone soul who this doesn't work even the first time. I don't get any errors upon entering the commands, but when I test my Xbox Live connection, it says there were errors and that it could not reach the xbox live servers or Xbox.com. When I set the DNS to manual and to the address of the laptop (192.168.2.1, like in the tutorial) it hangs for a while and then gives a different error.

Would be great if I could get this to work! Any idea of how to fix it would be nice!
Oops! I was lazy, and I didn't read to set the IP to the ROUTER, and not just the LAPTOP! Very sorry!
 
Old 06-25-2010, 03:31 PM   #11
takeitslow
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
sorry I'm so late to the game

I've successfully connected my Xbox 360 to the internet, but then it says that it does not recognise the port for xbox and xbox live. I think this has to do with the port-forwarding seigex talked about, but I am unsure what to type for $IPTABLES and $WAN_IF when he says to replace the variables. Help would be nice.
 
Old 07-04-2010, 12:27 AM   #12
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
taketslow: the $IPTABLES for me is literally just iptables on the command line. the $WAN_IF refers to the interface that the computer uses to connect to the internet. In my case, this was wifi0, as the laptop connected using WiFi. If you are using 2 wired connections and eth0 is connected to the internet and eth1 is to the xbox, $WAN_IF would be eth0.

Hope this helps you!
 
Old 09-02-2010, 10:58 PM   #13
joshfedo
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
not working

it says can't connect to your router because your network hardware is using a static ip. your manually defined ip may be wrong"

my router is 192.168.1.1 so i just copied word for word did i do something wrong?
Xbox reads:
ip:192.168.2.2
sub net:225.255.255.0
geateway:192.168.2.1
DNS: 192.168.1.1

Quote:
root@bt:~# ifconfig eth0 192.168.2.1
root@bt:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:d4:36:b1:8c
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::216:d4ff:fe36:b18c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:620 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:51864 (51.8 KB) TX bytes:468 (468.0 B)
Interrupt:22 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7000 (7.0 KB) TX bytes:7000 (7.0 KB)

wlan0 Link encap:Ethernet HWaddr 00:14:a5:b6:fb:91
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:a5ff:feb6:fb91/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11047 errors:0 dropped:0 overruns:0 frame:0
TX packets:10041 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11328524 (11.3 MB) TX bytes:1750697 (1.7 MB)

root@bt:~# cat /proc/sys/net/ipv4/ip_forward
1
root@bt:~# iptables -t nat -A POSTROUTING -o wlan0 -s 192.168.2.0/24 -j MASQUERADE
root@bt:~#

Last edited by joshfedo; 09-02-2010 at 11:07 PM. Reason: forgot terminal
 
Old 09-05-2010, 10:32 PM   #14
WarTurkey
Member
 
Registered: Jun 2009
Posts: 67

Rep: Reputation: 16
Quote:
Originally Posted by joshfedo View Post
it says can't connect to your router because your network hardware is using a static ip. your manually defined ip may be wrong"

my router is 192.168.1.1 so i just copied word for word did i do something wrong?
Xbox reads:
ip:192.168.2.2
sub net:225.255.255.0
geateway:192.168.2.1
DNS: 192.168.1.1
IP addresses beginning with 192.168.x.x are class C addresses. This means that the first 3 groups of digits must be the same, so if the router is 192.168.1.1, the Xbox needs to be 192.168.1.x, where x can be anything from 2 to 254. So the Xbox should be:

IP: 192.168.1.2
subnet: 255.255.255.0
gateway: 192.168.1.1
DNS: 192.168.1.1
 
Old 12-26-2010, 11:30 AM   #15
Mouon
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Simple solution, very good. Works as intended. I'm running Arch Linux i686. Thank you!

Last edited by Mouon; 12-26-2010 at 11:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find the ip address of a computer that is connected to LAN gajaykrishnan Linux - Networking 7 12-03-2010 05:38 AM
Forwarding Xbox Live ports to Original Xbox in OS X.4.4 mst3kman Other *NIX 11 08-16-2006 09:21 PM
Wireless lan connected but no internet XJNick Linux - Wireless Networking 5 08-07-2005 10:35 PM
connecting to a computer in a Lan from outside Tinku Linux - Networking 7 06-03-2005 01:51 PM
Using a linux router to put an xbox on a wireless lan brenan99 Linux - Wireless Networking 2 01-25-2004 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration