Small IP address problem? Home › Forums › Discussions › Support › Small IP address problem? This topic has 2 replies, 2 voices, and was last updated 16 years, 5 months ago by HannesG. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts June 12, 2008 at 6:33 pm #5212 HannesGParticipant 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); June 15, 2008 at 5:41 am #6643 Vadim SmirnovKeymaster pIPHeader.DestIp := htonl(NewDestIP.S_addr); Don’t do this, you already have IP address in the correct byte order. June 16, 2008 at 7:56 am #6644 HannesGParticipant Hi Thanks for your response. I have however experimented with this and found that this could have been the issue and resolved it. Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In