将Arduino以太网连接到localhost:8000 [英] Connect an Arduino Ethernet to localhost:8000

查看:208
本文介绍了将Arduino以太网连接到localhost:8000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通过以太网连接到我的计算机的Arduino,并且一个Web服务器正在localhost:8000上运行.

I have an Arduino connected via Ethernet to my computer and a webserver is running on localhost:8000.

计算机IP:192.168.1.5 arduino IP:192.168.1.6

computer IP: 192.168.1.5 arduino IP: 192.168.1.6

Arduino和计算机之间的连接在技术上是正常的,我什至可以在arduino和端口80上的计算机之间建立连接,但是当我启动Web服务器(这是一个symfony项目)并且命令行确认'服务器在本地主机上运行时: 8000",然后尝试从arduino连接到"192.168.1.5:8000",则失败.

The connection between Arduino and Computer is technically working and I even could establish a connection between the arduino and the computer on port 80 but when I start the webserver (it is a symfony project) and commandline confirms 'server running on localhost:8000' and try to connect to '192.168.1.5:8000' from the arduino it fails.

我做错了什么?我必须链接IP和域"localhost"吗?在哪里?

What am I doing wrong? Do I have to link the IP and the domain 'localhost' - is so, where?

非常感谢和问候, 斯蒂芬

Thanks a lot and best regards, Steffen

推荐答案

使用应用程序/控制台服务器启动Web服务器:运行0.0.0.0:8000

Start the webserver with app/console server:run 0.0.0.0:8000

这篇关于将Arduino以太网连接到localhost:8000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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