Go Down

Topic: Ip number works but not http://arduino.local ? (Read 14325 times) previous topic - next topic

chrisnet

the only way that the Yun will work is to us the IP number! The issue is that I would like to not have to remember my ip number or if I take the Yun to a new location I don't want to have to find look it up so I want to use http://arduino.local but it never woks. Is this a router issue? or a Yun issue?

If I unplug my internet cable from my router it works! So I think its a router issue, can someone give me advice on what settings I should look at in the router?

Windows 8
cisco Linksys E3000 router
Thanks

sonnyyu


chrisnet

Sorry, sonnyyu but I do not know how to install this package! The last time I installed anything I used the Arduino-Software install package from the control panel. But the "nss-mdns_0.10-1_ar71xx.ipk" is not in the available packages.

So If I put the package on the sd card how would I install it with putty ?
Thanks

noblepepper

Sonnyyu's answer will let your yun find other devices broadcasting zeroconf info. I think you want to find the yun with your Windows box, if so you need Apple's print services http://support.apple.com/kb/dl999

To answer you present question, you can install a package on your SD card with
Code: [Select]
opkg install /mnt/sd/somepackage.ipk

chrisnet

that's what I did but I get this
Code: [Select]

root@Arduino:~#  pkg install /mnt/sd/nss-mdns_0.10-1_ar71xx.ipk
-ash: pkg: not found

chrisnet

Oh I forgot that I did a reset and need to install
opkg
Thanks

chrisnet

Ok now I can not log in to the Yun's control panel again!!! I guess I have to reset again what a pain! Is it me or should this thing just work out of the box like the set up file "http://arduino.cc/en/Guide/ArduinoYun#.UxEMPvmwL3s" say's?

Ok sorry for the rant I have been missing with this for days I will reset and try everything again.
If it was not for people helping, I would have just gave up and went to something else.
Thanks for you help.

chrisnet

I have installed "nss-mdns_0.10-1_ar71xx.ipk"
and I have uncomment the line /etc/avahi/avahi-daemon.conf

host-name=arduino
domain-name=local

But that did not work I still can not go to http://arduino.local I have to goto the ip address "192.168.1.103"
But like I said I can unplug the internet cable from the router and it works.

When I ping http://arduino.local I get this
Code: [Select]

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\chris_000>ping http://arduino.local
Ping request could not find host http://arduino.local. Please check the name and
try again.

C:\Users\chris_000>

sonnyyu


chrisnet

Code: [Select]

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\chris_000>ping arduino.local

Pinging arduino.local [69.16.143.110] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 69.16.143.110:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Users\chris_000>


Here you can see that the IP is not right it should be 192.168.1.103

Chagrin

arduino.local is defined locally on the Yun (assuredly in /etc/hosts); Windows can't see that.

See http://support.microsoft.com/kb/101927 for how to create name -> IP associations. The entry will look like:
Code: [Select]
192.168.1.103 arduino.local
After saving the file, I'm not sure how long it takes Windows to refresh its resolutions -- need a Windows expert to chime in there.

sonnyyu


sonnyyu

#12
Mar 01, 2014, 06:05 pm Last Edit: Mar 01, 2014, 06:08 pm by sonnyyu Reason: 1
@Chagrin

Arduino's default is DHCP client, every time it could have new IP address.  

To make your solution to work, following either condition have to meet:


  • Setup Arduino as static IP

  • If router support mac address IP address binding, then binding static IP with Arduino Mac address



chrisnet

Thank you that worked now I can use arduino.local
If anyone else is interested here is What I did:

go to c\Windows\System32\Drivers\       folder on a Windows computer
right click on folder etc and uncheck "Read-only" then "apply"

In the etc folder you will find file "Host"
right click on "host" choose "Properties"
go to the security's tab
Select edit to change permissions
in the "Group or user names" select the user that you are login as mine is "User (Chris\Users)"
Then in the "permissions for User" check box "Full Control" then -"OK"

Now open "host" with a text editor like wordpad
At the end of the file add
"your arduino IP address"    arduino.local 
mine is "192.168.1.103 arduino.local"
Save the file

Undo changes  to permissions of  host file (uncheck "full control and Write") 

That's it it takes about a min for it to update then you can use "arduino.local"

chrisnet


@Chagrin

Arduino's default is DHCP client, every time it could have new IP address. 

To make your solution to work, following either condition have to meet:


  • Setup Arduino as static IP

  • If router support mac address IP address binding, then binding static IP with Arduino Mac address





Yes that would be a problem every time that my router gives a new address I would have to do everything all over again!
Thanks what would be the downside of setting the Arduino as static IP?

Go Up