Download ngrok for Java | ngrok

Download ngrok for Java | ngrok

The fastest way to put anything on the internet.

Get started with Java

Clone the ngrok Java SDK example:

Add the ngrok Java SDK to your pom.xml:

Add ngrok to your app:

Don’t have an authtoken? Sign up for a free account.

Open your ngrok URL in a browser to see it working!

You’re all set. What’s next?

Inspect every detail of your traffic

Watch the flow in real time, then dig into the headers, body, latency, response, and more for every request.

Peruse the Java SDK quickstart

Follow along to embed ngrok into your app and use Traffic Policy for auth and traffic transformation.

Bring your own domain

Create a DNS CNAME record to use your own domain name for your endpoint URL.

Endpoint Pooling lets you automatically distribute traffic among any number of replicas of your app. It isn't currently supported by the Java SDK — enable it with the ngrok agent CLI or config file.