harryallerston / RPI-Wireless-Hotspot

Configure your Raspberry Pi to act as a WPA encrypted WiFi hotspot, sharing the attatched ethernet connection. Allows the selection from a range of common DNS providers, including unblock-us for netflix. Chromecast support with this feature is also configured.
262 stars 100 forks source link

Redirect wlan0 traffic to eth0 #36

Open JonErakar opened 2 years ago

JonErakar commented 2 years ago

Hi, i´m working on a project with my raspberry PI 4 I need to connect to my raspberry PI another device by eth port, and this device has a fixed IP like 192.168.1.222. I need also to have my eth card with the fixed IP192.168.1.220. Finally, I need to connect to my RPI via WIFI from my laptop or smartphone. So, I have a web server and a web page on my RPI, and I need to send a file from the web page to the other device connected via eth. I have installed RPI hotspot, and now I can connect via WIFI to my raspberry. So this works. I also have done my web and have APIs to send the files.... The problem is that if I connect my raspberry via ethernet to a router, and also connect my device to the same router, all works!! But I need to redirect traffic to the device without the use of a router. So, it seems like eth and wlan is not on the same lan. Maybe I need that the wlan gives an ip to the ethernet, to be in the same lan, but I don´t know how to do it. Can anyone help me? Thank you