webread could not be determined IP adress

I'm having since two weeks problems using webread to get data from an URL. I can open the URL using the MATLAB browser, but if I use webread doesn't works and show the code :
Error using webread (line 122)
The IP address of "xxx.xxx.x.xx" could not be determined.
Previously it worked without problems. this happens for any url read.

4 Comments

Hi Julio, Can you give more context on what URL and content that you need to access ? webread is working fine for me in MATLAB browser.
Hi !. The problem "The IP address of "xxx.xxx.x.xx" could not be determined", is reported it with any URL (eg: http://www.mathworks.com). Maybe it's a webread options problem (which didn't happen before). I tried reading with urlread.m and it read the web page with no problem !.
>> DATA= webread('http://www.mathworks.com')
Error using webread (line 122)
The IP address of "192.168.X.XX" could not be determined.
>> DATA = urlread('http://www.mathworks.com')
DATA =
'OK'
Hi Julio, check this link once. Might help.
Also, one thing that I have noticed from my end is webread is not working for me if I set the protocol to http, but the same thing works fine with https.
You could try the above thing as well and let me know
Thank you very much !!
it worked using:
options = weboptions( 'CertificateFilename' , '' " );
webread(url, options)
I've tried both https and http, and it worked both ways.

Sign in to comment.

Products

Release

R2017b

Tags

Asked:

on 13 Dec 2022

Answered:

on 19 Dec 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!