CoderSathi
  • Tutorial
    • Java Tutorial
    • Swing Tutorial
    • JDBC Tutorial
    • Java String Tutorial
    • Servlet and JSP Tutorial
  • Mongo DB
  • AWS
  • DevOps
  • Linux
  • Git
Home > How to > Access Windows Apps from WSL

Access Windows Apps from WSL

Learn the concepts, implementation details, and practical steps with a clean developer-focused walkthrough.

Yuba Raj Kalathoki
By Yuba Raj Kalathoki
Last updated: July 1, 2026 · 2 min read · 0 Comments
Share: in X

In this post, I am going to explain how to access an application running in windows from windows subsystem Linux (WSL).

For example, let’s say you are running a Java application in windows that is listening the port 8080 and you want to curl on it from WSL like:

curl localhost:8080

In this case, we can’t access using localhost from WSL and it may show an error like:

Failed to connect to localhost port 8080: Connection refused

Solution to access an application running in Windows from Windows Subsystem Linux (WSL)

Find the local IP address of your computer. You can find it using ipconfig command. You can try it either in PowerShell or Command Prompt.

access an application running in Windows from Windows Subsystem Linux (WSL)

When you type ipconfig in your command prompt you will get something like following:

Wireless LAN adapter Local Area Connection* 3:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
Wireless LAN adapter Local Area Connection* 4:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
Wireless LAN adapter Wi-Fi:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::6451:ac8e:1c66:55a5%5
   IPv4 Address. . . . . . . . . . . : 192.168.43.228
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.43.1

Since I am using my Router it shows the address provided by the router. The correct IP address of my computer is:

192.168.43.228

Now, you can access Java application running in windows from WSL like following:

curl 192.168.43.228:8080

In this post, we learn to access application running in Windows from Windows Subsystem Linux.

We also learn to find the IP address that our computer is using.

Thanks

Related Posts:

  • How to Connect Java Application to a Remote Database…
  • JDBC Interview Questions: Ace Your Technical Screening
  • Troubleshooting Common JDBC Issues
  • Most Frequently Asked Spring Boot Interview…
  • MySQL Commands for Developers
  • How to Solve “systemctl command not found” Error: A…
Tags:windowswsl
Was this article helpful?
← Previous ArticleUnderstanding AWS EC2 Instances: A Comprehensive Guide
Next Article →Execute single JUnit Test using command line in Java

Leave a Comment Cancel reply

You must be logged in to post a comment.

Recent Posts

  • How to implement Passwordless Authentication in Spring Boot: A Step-by-Step Guide
  • How to Use AWS CloudFront Signed URLs in Spring Boot?
  • How to Fix SSH Agent Forwarding on macOS: The Ultimate Guide for Developers
  • How to Read AWS Secrets Manager in Spring Boot (Step-by-Step)
  • How to Fix “Public Key Retrieval is not allowed” MySQL JDBC Error
CoderSathi

Your go-to resource for Java, Spring Boot, Microservices, AWS, and modern development tutorials.

Linkedin

Quick Links

  • About
  • Contact

Popular Topics

  • Java
  • Spring Boot
  • AWS
  • DevOps
  • MongoDB
  • Linux
  • Git
  • How to
© 2026 CoderSathi. All rights reserved. Privacy Policy · Sitemap