Pages: [1]   Go Down
Author Topic: wifi to ethernet shield trough pc  (Read 1018 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi i`m trying to connect my arduino to my network but there is no way to directly connect it to the router, so i would like to know if i can use the wifi that is connected to my pc and send it to the arduino trough the ethernet port on my pc
thks
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5851
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes. If you use Windows it is fairly easy. Google search "internet connection sharing". Share your wireless connection with other users is what you want to do.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes im trying to do so but it doesn`t find my ip adress when i load the code :/ my wireless adapter ip is on DHCP and my local adapter is 192.168.0.1 should i change something?
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5851
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the article on XP. It is close enough to the newer Windows versions it should be close.
http://support.microsoft.com/kb/306126

You need to check your wireless dhcp range. Check the wireless connection to see what ip you were issued. A lot of wireless routers use 192.168.0.x/24 for the wireless subnet, and that would cause a routing conflict in your laptop if the ethernet port is set to that also.

This subject may be a bit off topic for this forum tho.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes i`ve tryeld that already but it still does not connetct, do i have to do domething in the code?
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5851
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What ip does your wireless adapter have now? Check that.

You must assign an ip address to the ethernet shield that is in that subnet. In your case, you could use 192.168.0.2 on the Arduino.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

According to ipconfig my wireless ip is 192.168.0.115
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 138
Posts: 5851
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Then your wireless and ethernet ports are using the same subnet. Change the ethernet port to 192.168.1.1 and the ip of the Arduino to 192.168.1.2. Then it should be able to route correctly.


Logged

Pages: [1]   Go Up
Jump to: