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 commentaires

Nikhil
Nikhil le 13 Déc 2022
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.
Julio Castro
Julio Castro le 13 Déc 2022
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'
Nikhil
Nikhil le 13 Déc 2022
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
Julio Castro
Julio Castro le 14 Déc 2022
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.

Connectez-vous pour commenter.

Produits

Version

R2017b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by