Skip to content

Connect to WSL Services with Other Devices #2172

Closed

Description

@ChillingVan

Hi.

My Windows version is 10.0.15063.

I start service in WSL. But it does not have outside IP address. So when I use an outside device, for example, a phone , cannot connect to the service in WSL.

These are service in WSL. And I can connect them in my computer locally. But the other devices in LAN cannot.
协议 本地地址 外部地址 状态 PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 11652
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 652
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:1536 0.0.0.0:0 LISTENING 764
TCP 0.0.0.0:1537 0.0.0.0:0 LISTENING 1492
TCP 0.0.0.0:1538 0.0.0.0:0 LISTENING 1616
TCP 0.0.0.0:1539 0.0.0.0:0 LISTENING 2744
TCP 0.0.0.0:1542 0.0.0.0:0 LISTENING 840
TCP 0.0.0.0:1556 0.0.0.0:0 LISTENING 884
TCP 0.0.0.0:1583 0.0.0.0:0 LISTENING 4072
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 4072
TCP 0.0.0.0:8989 0.0.0.0:0 LISTENING 11652
TCP 0.0.0.0:19305 0.0.0.0:0 LISTENING 11652
TCP 0.0.0.0:27036 0.0.0.0:0 LISTENING 11468

Anyone can help? Thanks!!


Thanks to everyone! When I close firewall or set allow specific port , it works. And set special port is better. Then I do not need to close the firewall.
About how to set specific port , see
http://www.thewindowsclub.com/block-open-port-windows-8-firewall

Activity

  1. laurinkeithdavis commented on May 30, 2017

    @laurinkeithdavis

    But it does not have outside IP address.
    It should have the same IP address configuration as Windows (basically):

    image

  2. sunjoong commented on May 30, 2017

    @sunjoong

    I can connect them in my computer locally. But the other devices in LAN cannot.

    ChillingVan - Those videos might be helpful, I guess;

  3. ChillingVan commented on May 31, 2017

    @ChillingVan
    Author

    Thanks to everyone! When I close firewall or set allow special port , it works. And set special port is better. Then I do not need to close the firewall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions