www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Vibe.d: Listening to port 8080 on external device doesn't work

reply aberba <karabutaworld gmail.com> writes:
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?
Feb 21 2017
next sibling parent reply krzaq <dlangmailinglist krzaq.cc> writes:
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".
Feb 21 2017
parent aberba <karabutaworld gmail.com> writes:
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.
Feb 22 2017
prev sibling parent Suliman <evermind live.ru> writes:
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.
Feb 22 2017