# WIFI without router

**URL:** <https://community.sparkfun.com/t/wifi-without-router/26811>\
**Category:** Wireless & IoT\
**Created:** [May 28, 2013, 9:53pm UTC](https://community.sparkfun.com/t/wifi-without-router/26811 "2013-05-28T21:53:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hobstructor](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@hobstructor](https://community.sparkfun.com/u/hobstructor)\
**Post date:** [May 28, 2013, 9:53pm UTC](https://community.sparkfun.com/t/wifi-without-router/26811/1 "2013-05-28T21:53:43Z")

</div>

I have an Arduino WIFI-shield. Can i use it in Ad-hoc or WIfi-direct/P2P mode? I want to be able to connect to a PC without going through a Wireless-router.

If not;

I need an WIFI-shield/device with UART or SPI with an embedded Web-server that can be connected via Ad-hoc or WiFI-direct/p2p to a PC.

From the PC, i need to access the WIFI-server via a browser. The browser gets some measurement-values.

I also need to send some info from the browser to the Arduino MEGA via the WIFI (for example via sending HTML-forms ie; hyperlinks, text-input etc)

If the Arduini Wifi-shield cannot be used, Can you suggest another WIFI-product that’ll work for me?

---

<div class="post-metadata">

**Author:** ![stevech](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@stevech](https://community.sparkfun.com/u/stevech)\
**Post date:** [May 30, 2013, 3:16am UTC](https://community.sparkfun.com/t/wifi-without-router/26811/2 "2013-05-30T03:16:17Z")

</div>

WiFi without a router…

IEEE 802.11’s ad-hoc mode.

Setup SSID, encryption as usual.

Give every node a static IP in the same subnet.

Change WiFi device mode to “ad-hoc”, rather than “infrastructure”. If this choice is missing - complain to vendor that they don’t meet IEEE 802.11 nor WiFi.

A laptop in ad-hoc mode with a static IP on the WiFi interface can connect and view web pages on any ad-hoc mode device that has a web server. Likewise, if a WiFi device has a telnet server or other, same.

Step one is to configure both, the do a ping from the laptop to the embedded device to see that all is setup properly.

There is no Association in ad-hoc mode. No gateway.

You can do two laptops in ad-hoc mode as a tutorial.

---

<div class="post-metadata">

**Author:** ![hobstructor](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@hobstructor](https://community.sparkfun.com/u/hobstructor)\
**Post date:** [May 30, 2013, 6:16am UTC](https://community.sparkfun.com/t/wifi-without-router/26811/3 "2013-05-30T06:16:39Z")

</div>

Thanks alot stevech…

You answered How to do it, a good answer. I do know how to set it up and what adhoc is, so my question was if you could suggest a wifi-shield that supports adhoc and is compatible wih arduino.

The Arduino Wifi-shield dosn’t support static addresses, so aehoc is out question.

Any alternatives?

---

<div class="post-metadata">

**Author:** ![stevech](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@stevech](https://community.sparkfun.com/u/stevech)\
**Post date:** [May 31, 2013, 4:02am UTC](https://community.sparkfun.com/t/wifi-without-router/26811/4 "2013-05-31T04:02:47Z")

</div>

Doesn’t support static IP address?

bad product. or misunderstanding.

---

<div class="post-metadata">

**Author:** ![stevech](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@stevech](https://community.sparkfun.com/u/stevech)\
**Post date:** [May 31, 2013, 4:26am UTC](https://community.sparkfun.com/t/wifi-without-router/26811/5 "2013-05-31T04:26:16Z")

</div>

Maybe one of these modules …

[http://www.wiznet.co.kr/Sub\_Modules/kr/ … 5&cate2=43](http://www.wiznet.co.kr/Sub_Modules/kr/product/Product_Line.asp?cate1=5&cate2=43)

I haven’t read the specs, but have used their 812MJ ethernet modules.

---

<div class="post-metadata">

**Author:** ![hobstructor](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@hobstructor](https://community.sparkfun.com/u/hobstructor)\
**Post date:** [June 1, 2013, 9:57am UTC](https://community.sparkfun.com/t/wifi-without-router/26811/6 "2013-06-01T09:57:39Z")

</div>

Hi,

it’s true… no static IP-address on the Arduino WIFI-shield… yet.

The Wiznet products seems to be perfect, i’ll try the Wifi-shield from Dfrobot. According to the spec, it should do all the things i need.
