Announcement

Collapse
No announcement yet.

desable ipv6 for a given port

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    desable ipv6 for a given port

    after 2 h with my friend google i still don't know how to force ipv4 for a given port.

    it seems tha xdebug needs was able to use ipv4 and not ipv6 ... by th way i wnat to have ipv4 for 9000 port.


    does someone can give me the way to solve that little toruble ?

    Fierfeu

    #2
    What you're asking for isn't possible. Networking is composed of protocol stacks; each level in the stack operates independently of other levels.

    IP is the protocol that manages connections between hosts, and relies on IP addresses to uniquely identify each host. TCP and UDP are the protocols that assemble datagrams from applications, and they rely on port numbers to uniquely identify applications.

    TCP and UDP are higher-level than IP. TCP and UDP make use of ports to accept incoming or send outgoing traffic. The traffic itself is dropped onto the lower-level IP for actual delivery.

    IP, regardless of whether it's v4 or v6, can't be constrained to a single port because the notion of "ports" doesn't exist at the IP level. IP only handles connections between computers; it knows nothing about upper-layer operations.

    Your request is a curious one. Would you explain more about what it is that you're actually trying to accomplish?

    Comment


      #3
      I want to be sure to use ipv4 for a given port on localhost. I found that XDebug doesn't work with ipv6 but i don't want to disable th whole IPv6 ... we never know !

      an each time i want to create a connection between My Kubunut Eclipse and Xdebug ... this is not working ... in another han this works verys well under my windows view !!! I have dual boot for work.

      Fierfeu

      Comment


        #4
        Ah, now I see. Some applications can be configured to start their listening daemons only on IPv4, and some applications can be configured to create connections only on IPv4. But such capability exists only at the application level -- meaning that you need to find some mechanism in the application to do this.

        For example, Dovecot (an IMAP server) has a setting in its configuration file that offers the ability to listen only on IPv4, only on IPv6, or both.

        If I'm understanding you correctly, you want Xdebug to listen only on IPv4. You'll need to investigate whether this is possible and how to configure it. I don't know Xdebug, so I can't offer suggestions.

        Comment


          #5
          thanks. In fact Xdebug can only use IPV4 so i I found a way to force eclipse to use IPv4 ...

          Thanks again ...

          Comment


            #6
            Excellent.

            Comment

            Working...
            X