# Can't register device on a self-hosted Mender server

**URL:** https://hub.mender.io/t/cant-register-device-on-a-self-hosted-mender-server/4931
**Category:** General Discussions
**Created:** [May 5, 2022, 6:12pm UTC](https://hub.mender.io/t/cant-register-device-on-a-self-hosted-mender-server/4931 "2022-05-05T18:12:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![surajtripathy](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@surajtripathy](https://hub.mender.io/u/surajtripathy)
#### Post date: [May 5, 2022, 6:12pm UTC](https://hub.mender.io/t/cant-register-device-on-a-self-hosted-mender-server/4931/1 "2022-05-05T18:12:44Z")

</div>

I have a self-hosted Mender server in an EC2 instance running Ubuntu18.04  
I followed the very well maintained instructions from [here](https://docs.mender.io/3.0/server-installation/installation-with-docker-compose) and the server is up. I was also able to generate an user and login using the web ui as well.

Also, I have another EC2 instance running Ubuntu18.04 with the Mender-client installed. I changed the server\_url in the /etc/mender/config file. However, I am not able to connect to the server and register as a device.

The demo version of the server doesn’t provide with a TENANT\_TOKEN, and I didn’t find any existing documentation on how to connect the Mender-client to the server. Am I missing something? Can I get a detailed process on how can I register a mender-client running in a EC2 instance to a demo mender-server running on another server.

---

<div class="post-metadata">

### Author: ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)
#### Post date: [May 16, 2022, 6:19am UTC](https://hub.mender.io/t/cant-register-device-on-a-self-hosted-mender-server/4931/2 "2022-05-16T06:19:01Z")

</div>

Hi @surajtripathy

There should be nothing keeping you from accomplishing this.

You need not worry about the `TENANT_TOKEN` for a self-hosted instance, this is hosted-mender specific.

Are you sure your `server_url` is correct in this instance? I mean, can you ping your server from the machine with the client on it?
