Skip to content

bad remote IP address in HttpRequest.connectionInfo of a HTTPServer on Windows  #23031

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. create a dart HTTPServer on Windows using ANY_IP_V6 in the 'bind'
  2. upon a client connection arriving, print out the HttpRequest.connectionInfo.remoteAddress.address
  3. repeat many connections from the same client

What is the expected output? What do you see instead?

expected output: the remote IP address
instead: we get strange values and the first connection has a different value

What version of the product are you using?
Dart 1.9.1 and previous versions too

On what operating system?
Windows 7 SP1 (64bit) and Windows 8.1 (64bit)

What browser (if applicable)?
N/A

Please provide any additional information below.
works fine on Linux
didn't try on MacOS
work fine if ANY_IP_V4 is used in the bind

full sample: https://gist.github.com/kgersen/40fc031bf045387a6045
run server.dart on a windows machine
run "client.dart http://server_ip:8192" on same machine or another

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-staleClosed as the issue or PR is assumed stalelibrary-iotype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions