471,325 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Change IP address programatically?

Al
Hi,
Is there any way of changing the IP address of a packet sent from my
computer to a web server? I suppose is not possible since the router
SNAT will change ip's anyway but it would be great if it's possible
Thanks!

Dec 15 '05 #1
5 4058
Hi,

Let's says it's possible, what about the returning packages? they will be
routed to a non-existen IP or (in case the IP is used somewhere else) to a
machine that is not expecting it.

IIRC if you use RAW sockets you can construct the TCP/IP package as you
wish., if so you can set the IP

cheers
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Al" <al**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,
Is there any way of changing the IP address of a packet sent from my
computer to a web server? I suppose is not possible since the router
SNAT will change ip's anyway but it would be great if it's possible
Thanks!

Dec 15 '05 #2
Al
I will have a look to Raw Sockets then. I'm not interested in the http
reply now but I'm not sure if even though I build up the packet on C#,
the router will add my public IP address to the packet so I probably
should disable NAT on my router.
regards

Dec 15 '05 #3
Hi,
What is what you want to do?
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Al" <al**********@gmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
I will have a look to Raw Sockets then. I'm not interested in the http
reply now but I'm not sure if even though I build up the packet on C#,
the router will add my public IP address to the packet so I probably
should disable NAT on my router.
regards

Dec 15 '05 #4
Al
I was just testing a personal website that grants a form submit
depending on the source IP (done in PHP programming). So my idea was to
create an http packet with another ip in order to get access to the
website. (Like a way to dynamize an static IP...)
regards

Dec 15 '05 #5
Hi,

Is the site in your local network?
if so you change the ip of the computer and test it.
If the site is not in your network unless that your internet connection has
more than one ip you cannot test it.
what about testing at home or in any other way?

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Al" <al**********@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
I was just testing a personal website that grants a form submit
depending on the source IP (done in PHP programming). So my idea was to
create an http packet with another ip in order to get access to the
website. (Like a way to dynamize an static IP...)
regards

Dec 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Schuntermann Joerg \(IFAT IT MFG COC MES MAC\) | last post: by
7 posts views Thread by Cliff Cavin | last post: by
reply views Thread by Dan Hartshorn | last post: by
2 posts views Thread by Edgardo Rossetto | last post: by
4 posts views Thread by =?Utf-8?B?RGFuaWVs?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.