Pages: [1]   Go Down
Author Topic: Official WIFI Shield fixed IP?  (Read 1768 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have the arduino WIFI shield here and it works great, I just have one issue, i want the shield to have a fixed IP. In the begin function I don`t have the option to set the IP (compared to the ethernet lib begin(mac, ip, dns) ).

Is there a way to set the IP to static?

I allready searched the forum but I didn`t find an answer.

Greetings and thank you

Robi
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 642
Posts: 50366
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using the WiFiClient class or the WiFiServer class?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello thanks for the reply,
WiFiClient  class.

Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 642
Posts: 50366
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm confused as to why you need to assign an IP address to the client. The client needs to know the IP address of the server to connect to.

Is the problem that the server doesn't have a fixed IP address?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It`s simply because I use the shield in a company network and they want me to use a specified IP adress, the other way is to pair the mac of the arduino with an IP adresse in their server... .
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 111
Posts: 5242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I see lots of uses for a fixed IP, one is if you don't run a DHCP server on your network.

@OP: You cannot specify a static IP for the Wireless Shield because all the DHCP stuff is handled by the embedded (on the shield) ATmega168. That source code (the shield's "firmware") is not yet publicly available (to my knowledge), so you're currently bound to the DHCP IP address with this hardware.
Logged

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

If anyone is still looking for the answer to this, I think it is worth mentioning http://arduino.cc/en/Reference/WiFiConfig.
Logged

Pages: [1]   Go Up
Jump to: