# Using SparkCore with router

**URL:** <https://community.particle.io/t/using-sparkcore-with-router/685>\
**Category:** Cloud\
**Created:** [December 12, 2013, 4:18pm UTC](https://community.particle.io/t/using-sparkcore-with-router/685 "2013-12-12T16:18:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsa0014](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jsa0014](https://community.particle.io/u/jsa0014)\
**Post date:** [December 12, 2013, 4:18pm UTC](https://community.particle.io/t/using-sparkcore-with-router/685/1 "2013-12-12T16:18:40Z")

</div>

Is is possible to use the Core with a router that isn’t set up over the Internet? Like I want to be able to take a router and set up a network in different places and use the Core to send data back and forth. Can I do that even if its not hooked up to the Spark Cloud or whatever?

Thanks,

Jonathan

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [December 12, 2013, 4:38pm UTC](https://community.particle.io/t/using-sparkcore-with-router/685/2 "2013-12-12T16:38:41Z")

</div>

Hi @jsa0014,

Totally! Right now the stock firmware and flashing process are meant to make things easy for people who don’t have a local build environment setup. This kind of change will get easier using the web IDE, but if you wanted to do this now, you could grab and flash the core-firmware, and you can have any kind of behavior you’d like since it’s all open. 🙂

Right now the user application only runs after being connected to wifi / the cloud, but you can disable this in main.cpp, and you can change what server you connect to by changing the IP in core-firmware/src/spark\_utilities.cpp on like 447.

> **[particle-iot/device-os](https://github.com/particle-iot/device-os)**
>
> Device OS (Firmware) for Particle Devices. Contribute to particle-iot/device-os development by creating an account on GitHub.

Thanks!  
David

---

<div class="post-metadata">

**Author:** ![jsa0014](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@jsa0014](https://community.particle.io/u/jsa0014)\
**Post date:** [December 12, 2013, 5:26pm UTC](https://community.particle.io/t/using-sparkcore-with-router/685/3 "2013-12-12T17:26:46Z")

</div>

Thanks for the quick reply Dave!  
I’m a mechanical engineer trying to use this for data acquisition so forgive me if I ask stupid questions haha. Which main.cpp is it in? Also you wouldn’t happen to know when wired coding is gonna be available?

Thanks,

Jonathan

---

<div class="post-metadata">

**Author:** ![zach](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zach/32/20714_2.png) [@zach](https://community.particle.io/u/zach)\
**Post date:** [December 12, 2013, 5:47pm UTC](https://community.particle.io/t/using-sparkcore-with-router/685/4 "2013-12-12T17:47:35Z")

</div>

@jsa0014 If you’re up for setting up a local build environment, you can do so now; just follow the README on the core-firmware repository that David linked to.

The main.cpp file that David was referring to is here: [https://github.com/spark/core-firmware/blob/master/src/main.cpp](https://github.com/spark/core-firmware/blob/master/src/main.cpp)

This whole process for making the Core work without the Cloud will be much more well-defined when we release the Private Cloud in January.
