Hi there, How i can change my Ip Address.

Home Forums Discussions General Discussion Hi there, How i can change my Ip Address.

This topic contains 1 reply, has 2 voices, and was last updated by  Vadim Smirnov 1 year ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9283

    alexios
    Participant

    i havethe follow code in delphi

    i want to change my sourceip address.
    I dont want to get response back just to sent the tcp packet.
    i try
    pIPHeader.SourceIp:=inet_addr(‘xx.xx.xx.xx’);

    but i think need more like recalculation of piHeader values.

    any help?

    #9285

    Vadim Smirnov
    Moderator

    Yes, besides changing the IP address you have to recalculate packet checksums. You can find some C++ sample code in the Internet Gateway. When doing NAT it changes source IP address and recalculates checksums.

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

You must be logged in to reply to this topic.