Comments (8)
Same happened to me, because if your HOST environment variable is empty, the server is trying to bind to :3000, which needs permission from the firewall. The solution is to invoke gin like this: HOST="localhost" gin
.
from gin.
hm. I haven't run into this issue before. Are you still able to reproduce this?
from gin.
Yup, every time.
I just run gin
on sample martini.Classic() helloworld app.
On Mon, Mar 3, 2014, at 05:35 PM, Jeremy Saenz wrote:
hm. I haven't run into this issue before. Are you still able to
reproduce this?
—
Reply to this email directly or [1]view it on GitHub.
[3516903__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTUxNjExM
iwiZGF0YSI6eyJpZCI6MjUxNDE4MzB9fQ==--32539489cf16de40e718e85eeec45d5d6c
a879b4.gif]
References
from gin.
Is this a gin-specific thing? Or Go's net/http
in general? In my tests it looks like the OSX firewall needs you to allow a binary to accept incoming net connections for any Go app using the net
package.
from gin.
Well, as long as you're serving on 0.0.0.0 firewall comes up. If hoever
its just 127.0.0.1 than its fine.
On Mon, Mar 3, 2014, at 05:55 PM, Jeremy Saenz wrote:
Is this a gin-specific thing? Or Go's net/http in general? In my
tests it looks like the OSX firewall needs you to allow a binary to
accept incoming net connections for any Go app using the net
package.
—
Reply to this email directly or [1]view it on GitHub.
[3516903__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwOTUxNzMxN
CwiZGF0YSI6eyJpZCI6MjUxNDE4MzB9fQ==--f4b054cc195648a72846f6fc8e9a4f2981
1405df.gif]
References
from gin.
ah okay. I know that martini can change the host via the HOST environment variable. maybe we should allow gin
to have a configurable host via arguments
from gin.
ah okay. Maybe we can set the host to localhost as the default instead.
On Tue, Apr 15, 2014 at 11:47 AM, Tamás Demeter-Haludka <
[email protected]> wrote:
Same happened to me, because if your HOST environment variable is empty,
the server is trying to bind to :3000, which needs permission from the
firewall. The solution is to invoke gin like this: HOST="localhost" gin.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-40519008
.
from gin.
Yeah that should work.
On Tue, Apr 15, 2014, at 11:52 AM, Jeremy Saenz wrote:
ah okay. Maybe we can set the host to localhost as the default instead.
On Tue, Apr 15, 2014 at 11:47 AM, Tamás Demeter-Haludka <
[email protected]> wrote:
Same happened to me, because if your HOST environment variable is
empty,the server is trying to bind to :3000, which needs permission from
thefirewall. The solution is to invoke gin like this: HOST="localhost"
gin.—
Reply to this email directly or view it on
GitHub<#12 (comment)
08>.
—
Reply to this email directly or [1]view it on GitHub.
[3516903__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMzIwNzEzM
iwiZGF0YSI6eyJpZCI6MjUxNDE4MzB9fQ==--654c322f86939da828f3b71dac83296bd2
0863e8.gif]
References
from gin.
Related Issues (20)
- Support for args on binary HOT 2
- gRPC usage HOT 2
- error while access to url localhost:8080 HOT 4
- Feature request: Support TLS backends HOT 4
- Go get gin can't find urfave module HOT 4
- flag provided but not defined: -immediate HOT 1
- No connection could be made because the target machine actively refused it
- Upgrade wercker build to use docker version
- Auto assign port for proxy server
- Incorrect Usage: flag provided but not defined: -appPort HOT 3
- Build fails
- Has this project been abandoned? HOT 2
- go
- Broken build HOT 4
- Can add a monitoring build for static files?
- command.ProcessState could be nil
- No error log when use gin with dlv for remote debug. HOT 1
- Perhaps suggest go install command instead of go get HOT 1
- My file content hasn't changed, but gin always executes building.
- This exception occurs frequently
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gin.