marxin
marxin

Reputation: 3922

Troubles with http server on linux

I have such problem. I have local http server (BottlePy or Django), and when i use http:// localhost/ or http:// 127.0.0.1/ - it loads immediately. But when i use my local ip (192.168.1.100), it loads very long time (some minutes). What could be the problem?

Server works on Ubuntu 11.

Upvotes: 0

Views: 119

Answers (2)

Igor Chubin
Igor Chubin

Reputation: 64563

It looks like that you have problems with DNS. can you check this idea running host 192.168.1.100 on the host? Please also check that other DNS queries being quickly processed. Check /etc/hosts file for a quick-and-dirty solution.

Upvotes: 0

m1k3y3
m1k3y3

Reputation: 2788

you should take a look at Slow Python HTTP server on localhost
similar issues has been resolved there.

Upvotes: 1

Related Questions