Server address don't show the same host name defined in waitress.serve command

16 views
Skip to first unread message

Marlysson Silva

unread,
Dec 25, 2019, 9:44:27 PM12/25/19
to pylons-discuss
When I ran the following code:

waitress.serve(application,host='localhost',port=8000)

In the terminal appears the other name instead of host defined in command:

Serving on http://LAPTOP-O4GOA2OU:8000

There's some problem with how I called the server?

Kevin Tewouda

unread,
Dec 26, 2019, 4:36:13 AM12/26/19
to pylons-...@googlegroups.com
Hi Marlysson,
I was also surprised by this display, you are not doing anything wrong, waitress uses the method socket.getfqdn() to complete the hostname
and this method returns LAPTOP.. on Windows.

Best Regards.

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/c35888ed-70ba-47aa-83a4-74f6646a7d98%40googlegroups.com.


--
Tewouda T. R. Kevin
Ingénieur informatique options génie logiciel et réseaux informatiques à 3IL
Titulaire d'un diplôme post master en télécoms à Télécoms Paris Tech
Consultant informatique pour le compte d'Adneom
Reply all
Reply to author
Forward
0 new messages