Ubuntu Networking :: Avahi Finds Nothing On Localhost?
May 5, 2011
I've got problem with Avahi on my laptop. It can see the other machines and services on the LAN but not it's own local services and I have no idea why. The laptop (hostname: forseti) sports Ubuntu 10.10, installed aavahi-daemon, avahi-dnsconfd and libapache2-mod-dnssd. Firewall is disabled. Other hosts on the LAN are: magni (openSuSE 11.4 with lots of services published and visible from forseti) and freya (Ubuntu 10.10 with gnome-user-share up & running). Forseti can see the other hosts and their services but not itself. The other hosts can't see forseti. Checked both with nautilus and CLI's avahi-browse.
Ive installed 10.04 on my laptop and notebook. It works perfectly on laptop. On notebook the problem is it finds no Wireless network and just says disconnected. I have no idea how to connect it, I tried reinstalling Ubuntu but no luck. I tried looking it up on internet but no luck in finding help. its an MSI U130. The wireless is defently turned on.
So I was the one who couldn't get their ethernet port to function properly. Most likely, this was the result of bad hardware since none of the community's suggestions for software fixes did anything. I believe this is probably true.Indeed, when I bought a cheap $10 wireless USB dongle, it immediately worked better than all the previous things. It detected networks, displayed network strength and even allowed me to attempt login.
The only problem now seems to be that it cannot login. I've rechecked the password countless times, but it just shows the 'connecting to wireless' animation for a minute or two and then poops out and says, 'disconnected'.I assume if everything is getting me this far, the driver is not the problem with the device. Is this a safe assumption?
I have a few ubuntu machines in my house, 1 mythtv backend server with other services as well, 2 mythbuntu frontends boxes hooked up to tv's etc. I wanted to push the audio from my laptop out over pulseaudio to the machine connected to the AV equipment.
I could not see any other pulseaudio sinks in padevchooser... this lead me down the road to investigating avahi.
When I run avahi-browse on my laptop (hydrogen) it only returns the services published from itself:
My laptop has vmware on it, and I've changed the vmnet intefaces to not support multicast so avahi ignores them. but I'm still at a loss to why my laptop can't see the other machines on my network with avahi (mdns).
why my new Ubuntu 10.04 computer won't automatically advertise afp thru avahi to the network? This is a new install of Ubuntu 10.04, I downloaded and installed newest version of Netatalk, and the Avahi daemon. Both installed with no issues. (I followed instructions from articles on here) I can manually login to Ubuntu afp share from my iMac, by going to "Go to Server" and typing in the ip 10.0.1.3 and putting in the Ubuntu username and password. I just can't get it to advertise or broadcast itself to the network like it is supposed to using netatalk and avahi. I've followed all of the tutorials I can find on this, but nothing works. Even if I issue the command to restart avahi daemon, Ubuntu still isn't seen in the iMac's finder window? Because I can manually login to it, I am assuming that netatalk is working properly. I've even tried to issue the command to restart netatalk first, then restart avahi, but still nothing?
Since I've updated to 9.10 my avahi-daemon sometimes won't start at boot.I've to "restart" it manually.I reinstalled it without success.Has anyone here the same problem? Or a useful solution?
I got a new X201 which is running Ubuntu 10.04. While at home, everything is fine, at work, I encounter some issues with wireless. the signal cuts in and out repeatedly.Here's the output of ping. I set it to ping a server every 90 seconds, 10 times. So this is a snapshot of 15 minutes of network activity...
Code:
PING (REDACTED) bytes of data. 64 bytes from (REDACTED): icmp_seq=1 ttl=252 time=1.50 ms 64 bytes from (REDACTED): icmp_seq=2 ttl=252 time=2.13 ms 64 bytes from (REDACTED): icmp_seq=3 ttl=252 time=1.38 ms
[code]....
Also I tried this (from a 2 year old thread which was most relevant solution I could find):
Code:
Changing AVAHI_DAEMON_DETECT_LOCAL=1 to AVAHI_DAEMON_DETECT_LOCAL=0 in /etc/default/avahi-daemon has got rid of the irritating pop-up. Basically, every 5 minutes or so, for a solid 60 seconds or so I get no signal. I've tried updating the kernel, and doing apt-get remove avant-daemon, but still have problems.
I am wondering if it is possible to use avahi to resolve hostnames across a gateway. With gateway I mean a linux box with ip_forward'ing enabled to pass traffic between interfaces. The gateway connects two networks with all hosts running Ubuntu and specifically avahi-daemon. The gateway is not running avahi and I am not able to install it there. The firewall configuration on the gateway is not blocking any traffic between the networks. I am able to send UDP packets from a host on one network to a host on the other.
When I run tcpdump on a host and try to ping that host.local from a machine on the other network I see no traffic. This means that the gateway is not passing the multicast traffic along. Is there any special setup required on the gateway to allow this?
I am sharing some folders from my Ubuntu machine, using Netatalk and Avahi, over my network.I access these folders from my Mac using the AFP protocol.When all is well, my Ubuntu folders show up in Finder on the Mac and I can connect to them.But at random intervals, the Ubuntu folders will disappear. Sometimes they reappear a short while later.At other times, they wont appear until I go to my Ubuntu machine, and re-save (even if i don't change anything) the file:/etc/avahi/services/afpd.service.
I do not quite understand how the virtual interface wlan0:avahi appeared. My guess was, my request "sudo dhclient wlan0" failed to get a valid ip, although I did not get any error message from running that command. I executed "sudo dhclient wlan0" again, but still no error message or network connection.
Later today, I tried to connect to a public wireless network. Still got the same error. But when I reboot my machine, no such problems.
In a previous thread I had detailed an issue I was having with avahi not firing up properly at startup.As a bit of background: the services available on the server aren't advertising until I restart the avahi-daemon manually after startup - The syslog shows the daemon starting on boot, but it never seems to access the service file.I was wondering if it is possible that this may be a file permission problem?
fedora.local = F14 default mingisapsycho.local = Mac OS X 10.6.4
I want to be able to ssh/scp between these two machines using:
ssh -l login fedora.local and ssh -l login mingisapsycho.local
rather than using IP addresses. Neither of these works, from either of the two machines. This does work between Mac OS machines. And I can ssh if I use IPs. So it seems that by default Avahi is not configured even though it is running? I really don't understand. By "does not work" I mean I get on both machines: ssh: Could not resolve hostname blah.local: Name or service not known
F15 current avahi-daemon installed nss-mdns installed firewall totally disabled (for now while testing) connected to network wirelessly
For perhaps 5 minutes I can either ssh into or from the F15 computer using:
ssh chris@macbook2.local
OR
ssh chris@f15.local
Works fine, no problems. And then in about five minutes it work resolve in either direction: ssh: Could not resolve hostname f15.local: nodename nor servname provided, or not known
I can still ssh in using an IP address. So I do:
[chris@f15 ~]$ service avahi-daemon status avahi-daemon.service - Avahi mDNS/DNS-SD Stack Loaded: loaded (/lib/systemd/system/avahi-daemon.service)
[code]....
*sigh* No that's not it. I just found no mDNS service in or out of the computer 3 minutes 26 seconds after restarting it, no additional items in messages.
Originally Posted by uselpa Why do you absolutely want to remove it? There is no good reason for Avahi-daemon to be automatically installed on a server that is setup up with a static ip address. Also, I would like to someone to explain the loqic in having such a service on a server running an Oracle Database.
All of the servers I manage run a bare minimum footprint. Unnecessary services waste server resources and they are potential security risks if not updated.This is why I want to "absolutely" remove the Avahi-daemon.
Dave Walden Linux Systems Administrator CARFAX, INC.
I tend to forget stuff if I don't work with it for awhile. somehow I struggled through and figured out (with a lot of help) how to set up Ubuntu Intrepid server edition on my computer, and am serving my website from my computer. For times when the free DNS nameserver is 'closed' (often lol) I use localhost and can see/work on my site. Suddenly, when I type localhost into the address bar, I get a blank page, nothing! I'm not sure what to do....can someone please help because am going to use my website to present a class project, and was going to use localhost (bring my computer) in case the nameserver was down, I have to be able to display it.
When i try to connect to MySQL database with MySQL Workbench using root@localhost i get following message: Failed to Connect to MySQL at localhost:3306 with user root
Access denied for user 'root'@'192.168.0.1' (using pasword: YES) which is ok, becouse 192.168.0.1 is not listed as a host from which MySQL server should accept connections.
I am a little confused, becouse i tell MySQL Workbench to connect using localhost, so server should (at least i think so) receive connection from 127.0.0.1
I think i had similar issue with PostgreSQL some time ago, but i just allowed connections from 192.168.0.1 then.
My host file is: Code: 127.0.0.1 localhost 127.0.0.1 localhost.localdomain localhost #::1 ent-pc localhost6.localdomain6 localhost6 127.0.0.1 ent-pc
i re-installed ubuntu 11.04 two days ago, to join 2 partitons into 1,anyway i then setup vnc and ssh as normal but now it just times out on both when trying to connect is there a firewall or something in place by default?ports show as open when scanning my external isp address, ubuntu box is in the dmz so no need for ports being forwarded.i also cannot connect via localhost, the above testing i could not connect from my worki can also netcat to my external ip via ssh/vnc ports and read the banners fine?
I have a laptop with Apache, MySQL, PHP, etc, and I'm able to work on web programming on my local server while at home, connected to my network. But I would like to be able to work on the local websites when I'm not connected to any networks, both for demonstrating a site, or simply working on it.
I was surprised to find that I could not connect to localhost at all without a network connection. I tried my normal Google for a solution, but, of course, that was futile without a network.
Now, I'm at home, and of course, it works because I have wireless. I don't really want to disconnect that to figure it out, so I thought maybe some nice soul here might know how to do this. Surely it can't be hard, can it? But, it's certainly not obvious.
i know it all sounds weard but ive been searching google so much now.. look the setup is kinda straight forward. We got a test server for websites. This server has lamp server configured. Now i have a Website in the apache www folder. From here on everything works fine in http://localhost or 127.0.1.1 etc etc. also i have configured virtualhosts. This so we can have a live enviroment but its actually a test enviroment.
Now i try to connect trough the lannetwork! so i goto my windows client and hit in the browser :http://(serverip+port) and also tried http://(serverip) When i do this i get a 403 forbiddin acces. I solved that problem by deleted a line in the apache2.conf wot was called : virtualHost xxx.xxx.xxx.xx: xx
Now Hes loading the page but says he cant connect to 127.0.1.1 Any1 knows a solution? (sorry for my bad grammer btw )
One of the computers attached to the network is giving localhost instead of 192.168.x.x in Remote Desktop config page therefore I'm unable to access it:
Quote: Your desktop is only reachable over the local network. Others can access your computer using the address localhost. Other computer and even other accounts on the same computer are showing something like:
Quote: Your desktop is only reachable over the local network. Others can access your computer using the address 192.168.0.8. How can I fix this?
I am running the HTTP server (Jetty) from Eclipse IDE, which listens on port 8888. I can connect to it in the browser with URL [URL] but not with http://192.168.1.100:8888/home, where 192.168.1.100 is my local IP. Not from this PC or any other PC in the LAN. Firewall is disabled. I can successfully ping to 192.168.1.100. I can share from this PC with SAMBA. All configuration and logs look fine.
I'm having trouble pinging localhost, specifically, pinging localhost when I'm not connected to a network. When I try it keeps telling me the operation is not permitted:
Code:
matt@mubuntu:~$ ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. ping: sendmsg: Operation not permitted ping: sendmsg: Operation not permitted
if I connect to the network, start pinging then disconnect it continues pinging. Google seems to think it could be something to do with my iptables setup:
matt@mubuntu:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
But as far as I can tell there isn't anything in there which would stop me connecting to the localhost (I also can't connect to my local apache instance when offline)... (It's worth mentioning that a couple of weeks ago I had the pc setup to share it's internet connection with a laptop, ala this guide, however I've since disabled the iptables rules and disabled ip forwarding.)
Installed apache2 and php5, got the message "It works!" and phpinfo() displays the info page from withing the my folder. But when i put my index.php and rest of the files in www/mysite/ I only get a blank page displaying nothing, as if my php scripts wont parse. If I create a plain html "hello world" doc it displays that.. I've used this guide before [URL] and got it to work last time some months ago, but this time around after clean ubuntu reinstall it's showing nothing, remember I struggled with some permission things last time doing sudo chmod a+rwx /var/www/* and same for subfolders css and images. but now nothing happens, no errors or nothing. I didnt have to do enything else last time, no php.ini or nothing, it just worked, after I set permissions to get css and images to display correctly. Tried to put my files in www alone but dont work either (also cannot delete the default index.html in the www folder). Tried to restart apache2 and the computer, but no luck. My site also works online from other servers, so this is a local problem.
I'm going to be going off to college in the fall and the internet probably won't be blazing fast like it is at home, so I was wanting to set my desktop up so that it would act as a local cache of the parts of the internet i frequent the most, but I can't find anything like that. All the tutorials I've found are either for sharing the load on a server or for setting up a separate machine as the squid.