Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-08-2011, 09:12 PM   #1
LQ Newbie
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Network Discovery of Xbox 360

Currently I'm writing a cron job to collect statistics about the local network. It also monitors the number of open connections from my torrent/media server and puts everything into a csv that I can do analysis on.

The problem is, I don't have any way to monitor my roommate's XBox 360. He complains of poor ping time while I'm torrenting (which is understandable) but in order to judge how much to adjust my torrents I need to know what type of impact XBox Live actually has on the network.

I'd like to at least know when the XBox is on the network, which I was trying to do via pings before I found out that M$ broke the golden rule and set the XBox to not respond to pings. I know it must respond to some protocols, but I'm not sure which ones or how to implement them from the command line.

Does anyone know how to (given the static IP lease of an XBox) determine if it is turned on and connected to XBox Live?

Network Layout (path traces):
Modem - SwitchA - NATRouterA - SwitchB - XBox(eth)
Modem - SwitchA - NATRouterA - SwitchB - ServerA(eth1)
Modem - SwitchA - ServerA(eth0)

//--- EDIT

After running some captures with wireshark, it seems that the XBox will occasionally multicast UPnP messages. Using mnc I can get the text from those messages (seems to be HTTP, which plays nice with stream tools).

So now my question shifts to: How can I log the date and time whenever I capture a packet with mnc? Right now I'm doing this:
mnc -i eth1 -l -p 1900 | grep

//--- EDIT #2
I took a look into the UPnP protocol and from what I understand if I multicast this text to then every device on the network should unicast back the UPnP services they offer, which will achieve my goal of determining if the XBox is on. The Caveat: Everyone response except for the XBox. I get responses from the router and other UPnP media servers, but M$ products don't want to play by the rules... again.

$ cat m-search 
MAN: "ssdp:discover"
MX: 2
ST: ssdp:all
$cat m-search|emcast -t 10 && mnc -l -i eth0 -l -p 1900
I know that the request is well formatted because wireshark understands it and I get responses within a second or two from the router and other media servers.

M$ is very picky about line endings. As soon as I adjusted the above m-search file to use \r\n line endings it worked.

So my original question stands.... How can I use this to check if the XBox is on at one minute intervals and record the date&time to a text file when it is.

Last edited by Vitus13; 11-09-2011 at 01:23 AM. Reason: Discovered more information


network monitoring, ping, torrent, xbox360

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
LXer: Xbox 360 reset glitch hack, Xbox 360 Linux on its way? LXer Syndicated Linux News 0 08-29-2011 11:50 PM
Xbox 360 - fatx mfaisal Linux - General 1 05-28-2009 01:37 PM
xbox 360 suavecu Linux - Software 7 07-24-2006 10:15 PM
Linux fo xbox 360 randyvalpobb Linux - General 2 01-20-2006 05:15 PM
Xbox 360 stabile007 General 112 05-28-2005 10:23 PM

All times are GMT -5. The time now is 05:35 AM.

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