如何从移动网络访问家庭局域网? [英] How to access home LAN from mobile network?

查看:192
本文介绍了如何从移动网络访问家庭局域网?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,我所有的朋友。



我想做一个小项目作为我的毕业设计。

它正在控制一个机器人车用相机通过我的手机。

像这样,我可以在任何地方看到我的家,只有移动网络。



我的想法:

手机←→移动信号基站←→互联网←→家庭网络服务提供商←→局域网路由器←→带摄像头的机器人车



我分析这个项目。

系统可以分为三个部分。

1.开发电话软件。

安卓手机,使用java,mybe轻松。

2.car和相机。

我可以使用Arduino或Paspberry Pi在网上商店购买成熟的设计和材料。很多设计使用Arduino,我不知道Arduino能否做到足够。我认为Paspberry Pi是berrer,但我在网上商店找不到成熟的设计。

3.communication

我不知道该怎么做,但我有三个想法。
$ b $b①租用公网ip。这是非常昂贵的。
$ b $b②带spk +麦克风的IP摄像头,通过改变声音的频率,控制机器人车。我需要购买一台IP摄像头,但我认为我无法获得程序界面。
$ b $b③局域网渗透等等。

和Pagekite,Ngrok一样,或者免费获得域名和端口号。

我认为第三种想法更好。

但我不知道该怎么办或设置。

我所有的朋友,你有其他方法吗?

或者PLZ教我如何使用Pagekite,Ngrok或其他相同的应用程序。

它是否安装在路由器中?它需要openWRT吗?

或者告诉我在哪里可以获得免费的域名和端口号。



非常感谢你!



我尝试了什么:



我可以找到免费的子域名,但是没有端口。

Excuse me,all my friends.

I want to do a small project as my graduation project.
It is controlling a robot car with camera by my phone.
Like this, i can see my home in everywhere, only having mobile network.

My idea:
phone←→mobile signal base station←→internet←→home network service provider←→lan router←→robot car with camera

I analyze this project.
The system can be devided into three parts.
1.phone software is developed.
android phone, use java, mybe easy.
2.car and camera.
I can buy mature design and material in online shop,using Arduino or Paspberry Pi. Many design use Arduino, I don't know whether Arduino can enough do it. I think Paspberry Pi is berrer, but i can't find mature design in online shop.
3.communication
I don't know how to do, but i have three idea.
① lease a public network ip. It's very expensive.
② IP camera with spk+mic, through changing the frequency of the sound, control robot car. I need buy a IP camera, but i think i can't get program interface.
③ LAN penetration and so on.
Like Pagekite, Ngrok, or get a free domain name and port number.
I think the third idea is better.
But I don't know how to do or set.
All my friends, do you have other methods?
Or plz teach me how to use Pagekite,Ngrok or other same app.
it is install in router? it is need openWRT?
Or tell me where i can get free domain name and port number.

Thank you very much!

What I have tried:

I can find free sub domains, but not have port.

推荐答案

为了进行测试,您可以在不花钱或学习曲线的情况下执行以下操作。



使用像这样的东西打开你想要使用的家用路由器上的端口,比如5505
什么是我的IP地址?
[ ^ ]您可以获取您的IP地址或主机名。现在,只要您的路由器或线路不重启或重新连接将是(半)静态。



有了这两个你现在有办法连接到来自互联网的家庭网络。



For testing you can do the following without spending any money or a learning curve with some Dynamic service.

Open the port on the home router you wish to use, something like 5505
using something like What's My IP Address?[^] you can get your IP address or host name. Now as long as your router or line doesn't reboot or reconnect that will be (semi) static.

Armed with these two you now have a way to connect to your home network from the internet.

InetAddress a = InetAddress.getByName("your_host_name_from_the_site_above");

   String port = 5505 ;
   String ip = a.getHostAddress();





如果您的路由器重新启动或丢弃线路,您将需要再次更改主机名。



有些路由器允许动态服务/设置,我担心你会有谷歌如何为您的特定路由器打开端口或动态设置。



/ Darren



If your router reboots or drops the line you will need to change the host name again.

Some routers allow for dynamic serving/setup, I'm afraid you will have to google how to open ports or dynamic setup for your specific router.

/Darren


这篇关于如何从移动网络访问家庭局域网?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆