Thread overview
Vibe.d: Listening to port 8080 on external device doesn't work
Feb 22, 2017
aberba
Feb 22, 2017
krzaq
Feb 22, 2017
aberba
Feb 22, 2017
Suliman
February 22, 2017
Using vibe.d, I bind to port 8080 at 127.0.0.1 but I can't access server on my phone through hotspot using the external IP from ip addr on Linux. But 127.0.0 running Apache server works.

Don't if its vibe.d or OS (ubuntu 14.04)

How do I reached my vibe.d server in this case on my phone?

February 22, 2017
On Wednesday, 22 February 2017 at 00:38:30 UTC, aberba wrote:
> Using vibe.d, I bind to port 8080 at 127.0.0.1 but I can't access server on my phone through hotspot using the external IP from ip addr on Linux. But 127.0.0 running Apache server works.
>
> Don't if its vibe.d or OS (ubuntu 14.04)
>
> How do I reached my vibe.d server in this case on my phone?

Listen on "0.0.0.0".
February 22, 2017
On Wednesday, 22 February 2017 at 00:38:30 UTC, aberba wrote:
> Using vibe.d, I bind to port 8080 at 127.0.0.1 but I can't access server on my phone through hotspot using the external IP from ip addr on Linux. But 127.0.0 running Apache server works.
>
> Don't if its vibe.d or OS (ubuntu 14.04)
>
> How do I reached my vibe.d server in this case on my phone?

Not forget to open 8080 port of incoming connections.
February 22, 2017
On Wednesday, 22 February 2017 at 00:53:53 UTC, krzaq wrote:
> On Wednesday, 22 February 2017 at 00:38:30 UTC, aberba wrote:
>> Using vibe.d, I bind to port 8080 at 127.0.0.1 but I can't access server on my phone through hotspot using the external IP from ip addr on Linux. But 127.0.0 running Apache server works.
>>
>> Don't if its vibe.d or OS (ubuntu 14.04)
>>
>> How do I reached my vibe.d server in this case on my phone?
>
> Listen on "0.0.0.0".

Thanks. Worked! Just realized both 127.0.0.1 and 0.0.0.0 cannot be both activated on the same port.