Unable to connect debugger

I'm unable to connect debugger to an On-premise application in the mendix modeler. I used the URL as http://xxxx:port/debugger/   and the password which was generated in the mendix service console. But I get the following error "Unable to connect to a debugger at the specified location." Please let me know if I'm wrong. Thanks.
1 answers

Is your laptop/dekstop with modeler running on the same network as your application? This is needed to connect to an on premise application.

Furthermore you should be able to use the url that you use to acces the application, no port needed(like http://applicationname-prod/debugger/).