-
Notifications
You must be signed in to change notification settings - Fork 96
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
Omnisharp doesn't listen on localhost #180
Comments
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 ?
|
Oh... do you have an IPv4 entry for localhost? |
The same problem, I use the OmniSharpSublime for ST3. This is the result of my telnet try: `➜ ios git:(master) ✗ telnet 192.168.1.11 60109 Bad Request (Invalid request line (parts).)Connection closed by foreign host. ➜ ios git:(master) ✗ telnet localhost 60109 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused Trying ::1... telnet: connect to address ::1: Connection refused Trying fe80::1... telnet: connect to address fe80::1: Connection refused telnet: Unable to connect to remote host ➜ ios git:(master) ✗ telnet 127.0.0.1 60109 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host ➜ ios git:(master) ✗ ` |
@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?
|
@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:
The text was updated successfully, but these errors were encountered: