Skip to content

Unable to identify remote ip #36

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. print request.connection.remote_ip
2. print request.get_remote_host()

What is the expected output? What do you see instead?
Either 1 or 2 should return me remote ip address.

What version of the product are you using? On what operating system?
On Ubuntu 9.10 -
    1. mod_pywebsocket: web_socket_transfer_data raised exception for 
/register: '_StandaloneConnection' object has no attribute 'remote_ip'

    2. mod_pywebsocket: web_socket_transfer_data raised exception for 
/register: '_StandaloneRequest' object has no attribute 'get_remote_host'


Please provide any additional information below.

pydoc for mod_pywebsocket informs me that -
'''
A Web Socket handler is composed of the following two functions:

        web_socket_do_extra_handshake(request)
        web_socket_transfer_data(request)

    where:
        request: mod_python request.
'''

That request is a mod_python request object, but I am not able to access 1. 
and 2.
I am running in standalone mode. If these properties and methods are not 
available in standalone mode, then what is the other way to access remote 
ip in standalone mode ?

Original issue reported on code.google.com by ideam...@gmail.com on 27 Dec 2009 at 5:59

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions