2

I was testing the server on localhost.

now I wanted to test using Heroku to host the server

but I'm having problems knowing, what would be the correct way to insert the url

before, using localhost

 void Start () {
    names = new ArrayList();
    networkPlayers = new ArrayList();

    isActive = true;
    _udpSocketManager = new UdpSocketManager("127.0.0.1", 5000);
    StartCoroutine(_udpSocketManager.initSocket());
    SendPing();

}

And now what is the correct procedure to change from 127.0.0.1 to my heroku url is https://wam.herokuapp.com/

1 Answers1

1

I'm assuming you are using this UdpSocketManager. If so it uses UdpClient, which means you can just use wam.herokuapp.com as the server address.

However, when deploying your server on heroku, be sure to check your port configurations.

Lincoln Cheng
  • 2,263
  • 1
  • 11
  • 17