Small IP address problem?

Home Forums Discussions Support Portal Small IP address problem?

This topic contains 2 replies, has 2 voices, and was last updated by  HannesG 9 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5212

    HannesG
    Participant

    Hi

    I can’t seem to get the IP address I am redirecting to correct.

    It should be 192.168.0.1

    On wireshark it displays wrong as 1.0.168.192 ??

    Any ideas on this?

    Here is the code I use to set the new destination IP:

    I’m using Delphi 7:

    byte(NewDestIP.S_un_b.s_b1) := 192;
    byte(NewDestIP.S_un_b.s_b2) := 168;
    byte(NewDestIP.S_un_b.s_b3) := 0;
    byte(NewDestIP.S_un_b.s_b4) := 1;

    pIPHeader.DestIp := htonl(NewDestIP.S_addr);

    #6643

    Vadim Smirnov
    Moderator

    pIPHeader.DestIp := htonl(NewDestIP.S_addr);

    Don’t do this, you already have IP address in the correct byte order.

    #6644

    HannesG
    Participant

    Hi

    Thanks for your response. I have however experimented with this and found that this could have been the issue and resolved it.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.