Arduino yun connection problem

Hello , i am having problem with getting started with yun, i have configured arduino yun to my home network and its showing my home network in “WiFi status” example but “http client” example not working and nor temboo…please help…Thank you

It looks like your yun cannot access internet. Is there some http proxy in the middle? Can you upload yunserialterminal, open serial monitor, type

ping -c 5 www.google.com

and paste the results?

no i haven't upgraded yun..doing now,by the way ,I tried that command in cmd and it showed that c is not a valid command...yes, i have proxy on my network ...these are the snapshots of settings and temboo example.. arduino yun - Album on Imgur

It's "ping -c" not just "c", Double check it

When you say you have a proxy, do you mean your browser is set up to use an HTTP proxy?

yes i think so there is http proxy...i am really sorry, i am a noob ..i don't understand what i have to do with " ping -c 5 www.google.com " ..i copy pasted it in windows 7 cmd and this is what i got Imgur: The magic of the Internet

If you get back to my message, I told you to run that command on the serial monitor of the Arduino IDE once you've uploaded the YunSerialTerminal example

If you must use a http proxy to access internet, then configuration is a little tricky. You should start by editing file

/etc/profile

on the yun add a line that looks like

export http_proxy=http://MY_PROXY_IP:8080

Then restart the yun and retry.

If you also need to use a user and pwd to access your proxy, put them in the url above so that it looks like

export http_proxy=http://USER:PWD@MY_PROXY_IP:8080

Hope that helps

i entered this command "ping -c 5 www.google.com " in serial monitor running ArduinoserialTerminal example and i got blank screen...where is the /etc/profile folder?

/etc/profile is a file located on the linux side of the yun. If your yun in access point mode (= it creates wifi Arduino Yun-XYZ…) you can connect to that wifi, use SSH or putty to access it via SSH (ip address is 192.168.240.1) then edit file /etc/profile with command
nano /etc/profile

I suppose you cannot change the network of the hostel but I would just like to share a bit of frustration regarding http proxy servers: they hardly make your internet life easier. If you have the chance to avoid them, avoid them smiley-wink

I edited etc/profile with "export http_proxy=http://MY_PROXY_IP:8080" by putting my home network proxy in place of MY_PROXY_IP but no success :frowning:

Have you also restarted your yun?
Is your proxy running on port 8080?
In order to give you some tips for the correct googling, you should look for "linux setup proxy command line"

Thanks again..it was my mistake , i got confused with Proxy and IP ..my mistake was instead of Proxy , i put Ip of my computer(Really noob). I changed it and Http client example is working thanks to you . But i tried Temboo yahooweather example but again connection problem. error is

Running GetWeatherByAddress - Run #2...
Error
curl: (7) Failed connect to evilgenius.temboolive.com:443; Connection refused
HTTP_CODE
000
Waiting...

evil_genius:
Thanks again..it was my mistake , i got confused with Proxy and IP ..my mistake was instead of Proxy , i put Ip of my computer(Really noob). I changed it and Http client example is working thanks to you . But i tried Temboo yahooweather example but again connection problem. error is

Running GetWeatherByAddress - Run #2...
Error
curl: (7) Failed connect to evilgenius.temboolive.com:443; Connection refused
HTTP_CODE
000
Waiting...

evilgenius.temboolive.com:443 You need https support, https_proxy.

export https_proxy=http://USER:PWD@MY_PROXY_IP:8080

Thank you sonnyyu , temboo is working.I am just curious , when is used export http_proxy=http://MY_PROXY_IP:8080 then my http client example worked but not Temboo and when i used export https_proxy=http://MY_PROXY_IP:8080 (secured) then my http client example didn't run but temboo got connected.WHY?

Have you replaced the export line? I think you need BOTH of them

A SOCKS Proxy server is a general purpose proxy server that establishes a TCP connection to another server on behalf of a client, then routes all the traffic back and forth between the client and the server. It works for any kind of TCP network protocol on any port. SOCKS Version 5 Proxy server adds additional support for security and UDP. The SOCKS server does not interpret the network traffic between client and server in any way. if you use SOCKS Version 5 Proxy server, you will be able proxy any TCP/UDP protocol (http,https,ftp,ftps,sftp,ssh…)

FYI;- Ping use Internet Control Message Protocol (ICMP) which is nether TCP nor UDP.

Thank you members for all your help.Everything working fine. :slight_smile: