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

조회 수: 2 (최근 30일)
Prashant Purwar
Prashant Purwar 2021년 2월 17일
댓글: Walter Roberson 2021년 2월 18일
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
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 2월 18일
Does the MATLAB Online session still time out if you do not jiggle the mouse every 15 minutes?

댓글을 달려면 로그인하십시오.

카테고리

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