Connecting from outside localhost #98
Replies: 32 comments
-
I also add that visual studio is run into administrator mode. |
Beta Was this translation helpful? Give feedback.
-
Hi @ange-black69 did you set up your urlacls? The bottom two sections of this doc might be helpful: https://github.com/jchristn/WatsonWebserver/wiki/Using-SSL-on-Windows Note: this doc is regarding use of SSL, but URL ACLs are required in either case. |
Beta Was this translation helpful? Give feedback.
-
Hello @jchristn thanks for the answer. Then as it's a french version of windows, the 'everyone' is not recognized correctly, so I made 'user=mike'. I havent configured ssl certificate for now, however I see your link and it was what I have already done Here is the way I start the server : My router had the port open too. Did I miss anything? |
Beta Was this translation helpful? Give feedback.
-
Hi @ange-black69 can you connect to it from within the same machine? Are you running as administrator? Edit: I just saw your note about running as administrator. |
Beta Was this translation helpful? Give feedback.
-
hello @jchristn |
Beta Was this translation helpful? Give feedback.
-
Hi @ange-black69 good to know connections work on the same machine. Have you tried from another machine on the same network? If it isn't allowed through, it's either 1) firewall or 2) URL ACLs. Also I notice you have URL ACLs for both |
Beta Was this translation helpful? Give feedback.
-
Hello @jchristn If you have any clue? |
Beta Was this translation helpful? Give feedback.
-
Could you try setting the constructor back to |
Beta Was this translation helpful? Give feedback.
-
thanks for the really quick repply! |
Beta Was this translation helpful? Give feedback.
-
Another note : I have build the application, and executed it standalone as administrator, disabled my firewall too to be sure, and nothing, the server is unreachable |
Beta Was this translation helpful? Give feedback.
-
Hi, can it be reached by another machine on the same network? I have JS test code in the README that you can use on another machine's browser. |
Beta Was this translation helpful? Give feedback.
-
Ok so I have tried with the android version of my game on my phone on the same network and inputing the local ip where the server machine is and no I cannot connect |
Beta Was this translation helpful? Give feedback.
-
Wow, this is strange. To make sure I understand, the server is Windows 10, you're running as administrator, using |
Beta Was this translation helpful? Give feedback.
-
Another note : when deploying the app to a linux vps, on a test server for example, and filing the machine's ip on the constructor, everything works fine. |
Beta Was this translation helpful? Give feedback.
-
yes this is exactly this |
Beta Was this translation helpful? Give feedback.
-
@ange-black69 happy to help, let's get it working :) |
Beta Was this translation helpful? Give feedback.
-
@jchristn It means : access denied. |
Beta Was this translation helpful? Give feedback.
-
Can you try running in Command Prompt instead of PowerShell, and make sure it's running as administrator? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@jchristn |
Beta Was this translation helpful? Give feedback.
-
Hi @ange-black69 if you're running HTTP you may also want to try deleting the URL ACL. I may have misspoke when I recommended having that. I had to delete it from mine. So it looks like the test server app is working locally, that's a good step. You don't have another computer to test with? Otherwise it's really hard (even with a virtual machine) to make sure network traffic comes in through the network interface. |
Beta Was this translation helpful? Give feedback.
-
@jchristn |
Beta Was this translation helpful? Give feedback.
-
alright so @jchristn unfortunately I cannot connect from my phone on SAME network and having the url acl deleted... |
Beta Was this translation helpful? Give feedback.
-
Got it, but can it connect with the URL ACL in place? I'll add you on Discord. |
Beta Was this translation helpful? Give feedback.
-
hi @jchristn |
Beta Was this translation helpful? Give feedback.
-
Same problem. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hello,
i'm desesperately trying to make the server listening to other than localhost to ease my debug from outside.
Unfortunately, after reading your part : 'Listening from outside localhost' and hours of trying I didnt end up to a good result.
I'm using windows 10 and Visual Studio.
I have tried the multiple hostname list constructor and got 'bad URI format error'
I tried with only my public ip, another error on starting the server
Tried to edit my windows host file to point this ip to localhost, same error
Tried to make the '*' wild card, the server runs but my mate cannot connect
Opened the port on my internet provider, nothing
Created a firewall rules : nothing.
I don't really know what I could do next, if you have any idea, I'm listening.
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions