Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running server on Windows #13

Closed
phantompepper opened this issue Mar 26, 2020 · 2 comments
Closed

Running server on Windows #13

phantompepper opened this issue Mar 26, 2020 · 2 comments

Comments

@phantompepper
Copy link

I have a quick question in regards to where it says ./server --host="<hostname>:<port>" --token="<token_or_blank>"

On windows, this doesn't seem to do anything. I just get "./server is a directory" in bash. If I need to just manually add the host and token values before building it, that's fine I was just curious if the command would work or not, as it would be handy.

Also, in regards to hosting: I've so far been able to get this working (with my own copy of Postwoman) locally. I would really like to host the proxy but am a bit confused on what's going to happen. My question is if the server, with an IP of 123.123.123.123 is running the proxy (pointing at localhost:9159 for host) then would I be able to reach the proxy at 123.123.123.123:9159?

Thanks a million for all of the work that has gone into this and Postwoman!

@NBTX
Copy link
Contributor

NBTX commented Jun 7, 2020

Hey - thank you and sorry I didn't get back sooner!

I reorganized the directory structure and forgot that I moved the server output to ./out/windows-server/postwoman-proxy-server.exe. If you copy this file to your working directory and rename it to server.exe, then you can run the command as shown (though I'd recommend specifying server.exe.)

I will update the documentation to reflect this - so thanks for bringing it to my attention.

So a full build procedure would be as follows:

$ ./build.sh windows server
$ cp out/windows-server/postwoman-proxy-server.exe ./server.exe

# Then you can run the server
$ ./server.exe --host="<hostname>:<port>" --token="<token_or_blank>"

As for your question about hosting - yes, if you were hosting the proxy on a server at 123.123.123.123, you would enter http://123.123.123.123:9159 as the proxy URL in Postwoman.
However you could not bind to localhost:9159 and then access it on that IP, you'd either need to specify --host="123.123.123.123:9159" or `--host="0.0.0.0:9159" to bind to all IP addresses / interfaces)

@phantompepper
Copy link
Author

phantompepper commented Jun 10, 2020 via email

@SamJakob SamJakob closed this as completed Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants