You are not logged in.

#1 2015-12-30 19:02:30

daviddavo
Member
Registered: 2015-12-30
Posts: 64

MPD Remote connection doesn't work in VM

Hello, I'm testing Archlinux for a few months (I'm waiting to a break to have enought time if a problem occurs) in a Virtual Machine in Windows 10 (Yeah, I know, is shit. But I need it for compatibility with the school). In that virtual machine I have MPD binded to the port 6605. When I bind the address in the cfg to 0.0.0.0 or localhost or 127.0.0.1 it works well, but I can't connect remotely.  When I edit mpd.conf and set "bind_to_address" to 192.168.1.38 (my LAN address), mpd doesn't works. Here the --verbose output:

config_file: loading file /home/davo/.config/mpd/mpd.conf
socket: Failed to bind to '192.168.1.38:6605': Cannot assign requested address


Thanks to all, I'm willing to have time to install archlinux big_smile

Note: I also tried with Windows clients on the host machine and nothing sad

Last edited by daviddavo (2015-12-30 19:05:34)

Offline

#2 2015-12-30 19:23:13

daviddavo
Member
Registered: 2015-12-30
Posts: 64

Re: MPD Remote connection doesn't work in VM

Ok, ok, I'm a dumbass. It was a Virtualbox problem. I'm not gonna erase the post because I'm going to explain the solution to anyone who has the same problem

Go to the Vbox configuration (in the host). In the "Network" tab, select Attached to: Bridged Adapter. Then in the guest machine put ifconfig. The IP address in enp0s(x) is the addres to bind the mpd Server (and the clients too).

Offline

#3 2015-12-30 19:28:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: MPD Remote connection doesn't work in VM

Welcome to Arch Linux.

<moderatorMode> Please be aware of our rules of etiquette </moderatorMode>

What are you using for the host VM?  Virtualbox? VMWare?
How is the network for the guest configured?  NAT? Bridged?   What is the IP of the Arch VM  ( ip addr )?  What is/are the IP(s) of the host (From PowerShell, ipconfig  )?  If there are any Internet routable addresses there, go ahead and redact them -- if you are behind a router, there shouldn't be.

Edit:  Never mind, we were posting at the same time smile

Last edited by ewaller (2015-12-30 19:29:36)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB