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

3 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2021-2-17
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.

请先登录,再进行评论。

回答(1 个)

Reeno Joseph
Reeno Joseph 2021-2-18
Hi Prashant,
MATLAB Online now supports Raspberry Pi. This will allow you to access a remote Raspberry Pi with minimum steps.
-Reeno

类别

Help CenterFile Exchange 中查找有关 Installation Setup and Configuration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by