Open afiodorov opened 9 years ago
I think it is listening on localhost.
https://github.com/OmniSharp/omnisharp-server/blob/master/OmniSharp/Program.cs#L127
You have a localhost entry in /etc/hosts ? On 13 Apr 2015 14:42, "jtbm37" notifications@github.com wrote:
I think it is listening on localhost.
https://github.com/OmniSharp/omnisharp-server/blob/master/OmniSharp/Program.cs#L127
— Reply to this email directly or view it on GitHub https://github.com/OmniSharp/omnisharp-server/issues/180#issuecomment-92357454 .
Oh... do you have an IPv4 entry for localhost?
The same problem, I use the OmniSharpSublime for ST3. When I started the ST3, the OmniSharp Server start succeed, but it just LISTEN on my remote IP address, like 192.168.1.11, not on 127.0.0.1(localhost).
This is the result of my telnet try:
`➜ ios git:(master) ✗ telnet 192.168.1.11 60109 Trying 192.168.1.11... Connected to localhost. Escape character is '^]'. ^] HTTP/1.1 400 Bad Request Content-Type: text/html; charset=us-ascii Server: Mono-HTTPAPI/1.0 Date: Sat, 18 Jun 2016 03:45:19 GMT Content-Length: 52 Connection: close
@lishali12345 Check your host file. You need an entry for localhost.
@jtbm37 Do you mean I need an entry for localhost mapping to my remote ip address like 192.168.1.11? I have an entry for localhost in my hosts file, like this:
127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost
@lishali12345 what I meant was to make sure you had an entry with localhost pointing to 127.0.0.1 because as you can see in the code linked above the http server will be listening on localhost.
Yes, I know that. But on my OSX EI Capitan, it just listen on my remote IP address in LAN, not on the local loopback address 127.0.0.1, which can view with the netstat -nat |grep LISTEN.
This looks like local misconfiguration, but I can't seem to force mono to listen on localhost instead of remote network:
Stop iptables so that they don't interfere:
Start omnisharp:
Check if I can connect to it:
See if port is open
Try remote host: