# Server on Raspberry not working

**URL:** <https://discourse.processing.org/t/server-on-raspberry-not-working/17547>\
**Category:** Processing for Pi\
**Created:** [February 4, 2020, 3:47pm UTC](https://discourse.processing.org/t/server-on-raspberry-not-working/17547 "2020-02-04T15:47:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agp](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@agp](https://discourse.processing.org/u/agp)\
**Post date:** [February 4, 2020, 3:47pm UTC](https://discourse.processing.org/t/server-on-raspberry-not-working/17547/1 "2020-02-04T15:47:49Z")

</div>

I have written a program on my laptop where I am creating a server and connecting some ESP32 as clients. Server sees when a new client is available and I have communication between them. Now, I am trying to run the same program on a Raspberry but I am getting a server IP 127.0.1.1 which is not correct obviously. Why is that? When I am running the program on my laptop everything works fine. What am I missing? First time working with Raspberry.

Thanks,  
A

---

<div class="post-metadata">

**Author:** ![anon68884268](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Post date:** [February 4, 2020, 5:58pm UTC](https://discourse.processing.org/t/server-on-raspberry-not-working/17547/2 "2020-02-04T17:58:14Z")

</div>

That’s difficult to understand without any code. What method are you using to get your IP? On which RPI are you? Are you using Websockets or the built-in Network libary? Check if your network interface is on, enabled and NOT in Promiscous mode, by running in Terminal `iwconfig`.

---

<div class="post-metadata">

**Author:** ![agp](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@agp](https://discourse.processing.org/u/agp)\
**Post date:** [February 5, 2020, 9:58am UTC](https://discourse.processing.org/t/server-on-raspberry-not-working/17547/3 "2020-02-05T09:58:25Z")

</div>

Problem solved. I was using new Server command to server

```auto
  myServer = new Server(this, 5204); 
  println(Server.ip());

```

so was getting the 127.0.1.1 which is loopback IP (but I didn’t knew that 😑) when I understood how exactly the loopback works I solved my problem by connecting at the IP RPI got. Everything now works almost fine. Stupid question I know.

Thanks anyway,  
A
