127.0.0.1只能本机访问,其他网络终端要访问就得使用更大范围的网络段。如果两台机器同在一个局域网,那可以用局域网IP,如192.168.1.11这样的,如果不在局域网内那么就得用公网IP。前提是服务器上的django服务端口得绑定在你所访问的ip上

发自我的 iPhone

> 在 2015年6月11日,22:45,Sergiy Khohlov <skhoh...@gmail.com> 写道:
> 
>  127.0.0.1  is always your local PC. 
>  you should use another one interface for accessing from remote host. 
>  if  your local PC has IP 192.168.0.10 
>   right syntax is django-admin.py runserver 192.168.0.10:8000
> 
> Many thanks,
> 
> Serge
> 
> 
> +380 636150445
> skype: skhohlov
> 
>> On Thu, Jun 11, 2015 at 5:26 PM, Neto <paulosouzamac...@gmail.com> wrote:
>> 通过远程计算机,您无法打开地址?如果是这样,你应该用你的电脑的IP要访问。
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/029d94b6-7967-4921-ba3e-16c8d3fe3a01%40googlegroups.com.
>> 
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CADTRxJM_jDHYqbRJ_j-qsEODfDpGpdEsHrUYRjSsVY1UMJsxsg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/32BC3037-ACBF-4B3A-9368-3FB9279A6379%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to