You are not logged in.

#1 2010-05-22 21:58:24

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Can't connect to MPD over local network - control [solved]

I have a laptop running Arch Linux. I recently purchased an O2 Joggler, and installed Ubuntu Netbook Remix on a USB drive for it (AWESOME, btw). My idea was to use the joggler as a remote control for my laptop, which is often running MPD to listen to my music collect (I'm also using it for light browser etc.)

However, my setup just now isn't allowing me this. Here are some configs that will hopefully help the diagnosis smile


mpd.conf:

music_directory       "/home/iain/Music"         # Your music dir.
playlist_directory    "/home/iain/.mpd/playlists"
db_file               "/home/iain/.mpd/db"
log_file              "/home/iain/.mpd/mpd.log"
error_file            "/home/iain/.mpd/mpd.error"
pid_file              "/home/iain/.mpd/mpd.pid"
state_file            "/home/iain/.mpd/mpdstate"
user                  "iain"
port              "6666"
bind_to_address          "any"
#password              "mpd@read,add,control"
default_permissions   "read,add,control"
log_level              "verbose"
 
audio_output {
    type        "alsa"
    name        "Sound Card"
    options        "dev=dmixer"
    device        "plug:dmixer"
    format        "48000:16:2"
    mixer_type    "alsa"
#    mixer_device    "default"
#    mixer_control    "Alpha"
    #auto_resample    "no"
}

/etc/hosts.allow:

#
# /etc/hosts.allow
#

#ALL:ALL:ALL
MPD: ALL
# End of file

/etc/hosts.deny:

#
# /etc/hosts.deny
#

ALL: ALL: DENY

# End of file

I'm trying to connect FROM my joggler to my laptop which is running MPD. The laptop's local IP is 192.168.1.70.
I know how awesomely useful the Arch user on these forums are (I've need the help A LOT in the past), so I'm hoping one of you clever lot can help me holmes' this problem.

Thanks,
pritchard92

Last edited by pritchard92 (2010-05-25 14:35:16)

Offline

#2 2010-05-23 00:33:44

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Can't connect to MPD over local network - control [solved]

set up ssh or avahi to connect to your laptop to control the mpd. or use an mpd client.

Last edited by kgas (2010-05-23 00:36:12)

Offline

#3 2010-05-23 01:24:43

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: Can't connect to MPD over local network - control [solved]

Well, I thought it was possible solely through MPD and a client on another device, such as Sonata or GMPC?

Offline

#4 2010-05-23 02:09:58

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: Can't connect to MPD over local network - control [solved]

How are you connecting to your laptop from the other device?  With sonata or similar, have you setup the connection preferences so that your host=192.168.1.70 and your port=6666?

Offline

#5 2010-05-23 11:56:01

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: Can't connect to MPD over local network - control [solved]

I was using the IP and the port correctly. However, it seems that the problems is stupidly simple.. iptables was running on the laptop when I thought it wasnt :S Silly me! Can someone give me an indication of what to add my my iptables config file to allow access to MPD when the firewall is running?

Offline

#6 2010-05-24 17:35:37

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Can't connect to MPD over local network - control [solved]

A hint to open a port
iptables -A INPUT -p tcp -m tcp -s 0/0 --dport <portno> -j ACCEPT.   with the port number for eg 8600 is used to open up the mpd streaming for me.(in arno firewall script you can set these in custom.rules. The rules may differ in your case. A search will give tons of options.

Offline

#7 2010-05-24 19:44:42

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: Can't connect to MPD over local network - control [solved]

Ill give that a go next time I'm at my main machine - thank you smile

Offline

#8 2010-05-25 14:34:31

pritchard92
Member
Registered: 2009-06-19
Posts: 62

Re: Can't connect to MPD over local network - control [solved]

Worked a charm, thank you!

Offline

Board footer

Powered by FluxBB