You should type the protocol if it is not http or https. In this case ws or wss. I suggest using wss protocol, so get a let's enctypt certificate. It's free, and easy to install it using certbot.
Not for real! I only typed in the IP of my #haven relays like this
" XX.xx.xx.xx:3355" in amethyst. Which was not working.
Now i typed in "ws://xx.xx.xx.xx:3355" and everything works fine. I don't use an ssl certificate. Kind of ashamed of making such a beginners error...
Thanks nostr:nprofile1qqsw9n8heusyq0el9f99tveg7r0rhcu9tznatuekxt764m78ymqu36cpz4mhxue69uhhyetvv9ujuat50phjummwv5hszymhwden5te0wahhgtn4w3ux7tn0dejj7qg4waehxw309an8yetwwvh82arcduhx7mn99uuwx66a for this nice piece of code!
Discussion
It won't give a certificate because I am using an IP not a domain.