MATLAB Answers

How to connect Raspberry Pi 4 Model B though a internet on other computer?

3 views (last 30 days)
Prashant Purwar
Prashant Purwar on 17 Feb 2021
Commented: Walter Roberson on 18 Feb 2021
Hi, I want to access the Rasberry Pi 4 Model B through MATLAB. I am runing MATLAB far away from raspberry board. I am trying to connect raspberry through LAN (fixd IP). I have set IP address through router and wrote the same IP address in MATLAB Rasberian image file but can not include the port adress.
Please let me know how to do it.
MATLAB R2020a
  1 Comment
Walter Roberson
Walter Roberson on 17 Feb 2021
Your router would have to have been configured to map an external ip address to the static ip of the raspberry. It would either have to map the entire ip to go to the raspberry (with perhaps only some ports being allowed through), or else it would have to be configured so that if a very particular port was accessed from the outside that the one port was mapped through to the destination ip address.
If the router has been configured in that mode of only mapping to the destination when particular ports are accessed, then it is very likely that the router permits you to specify which port on the destination is to get the packet. There are some cheap routers that only permit entire ip addresses to be mapped, but any router that permits specific ports to be mapped should also permit you to specify the destination port ("Port Address Translation")
Oddly enough, consumer routers seldom permit entire ip addresses through without supporting port address translation, as consumer routers seldom expect to serve multiple public ip addresses. The devices that support DMZ but not PAT are typically 15-ish years old. They exist.

Sign in to comment.

Answers (1)

Reeno Joseph
Reeno Joseph on 18 Feb 2021
Hi Prashant,
MATLAB Online now supports Raspberry Pi. This will allow you to access a remote Raspberry Pi with minimum steps.
-Reeno
  1 Comment
Walter Roberson
Walter Roberson on 18 Feb 2021
Does the MATLAB Online session still time out if you do not jiggle the mouse every 15 minutes?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!