Connect an Arduino Ethernet to localhost:8000

孤人 提交于 2019-12-12 01:42:31

问题


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

computer IP: 192.168.1.5 arduino IP: 192.168.1.6

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.

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


回答1:


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



来源:https://stackoverflow.com/questions/43090789/connect-an-arduino-ethernet-to-localhost8000

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!