# Processing Network Client.available();

**URL:** https://discourse.processing.org/t/processing-network-client-available/21886
**Category:** Libraries
**Created:** [June 15, 2020, 10:09am UTC](https://discourse.processing.org/t/processing-network-client-available/21886 "2020-06-15T10:09:55Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [June 15, 2020, 3:08pm UTC](https://discourse.processing.org/t/processing-network-client-available/21886/5 "2020-06-15T15:08:28Z")

</div>

Hello,

> [@Moritz](#):
>
> I want to know if a server is available or not before i write to it as a client

I was able to integrate this with the server and client examples and it works:  
[https://discourse.processing.org/t/scan-for-servers/21814/4](https://discourse.processing.org/t/scan-for-servers/21814/4)

```auto
state = portIsOpen("127.0.0.1", 12345, 100); //returns a true or false that you can use

```

`:)`

---

_[View the full topic](https://discourse.processing.org/t/processing-network-client-available/21886)._
