Results 1 to 16 of 16

Thread: Different IP Addresses for the same computer

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Arrow Different IP Addresses for the same computer

    Is it possible for one computer to use different IP Addresses when connecting to the internet? I am not a techie so forgive me for asking...

    TIA
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Different IP Addresses for the same computer

    Depends, if you use a router (most broadband modems) then your publicly visible IP address is that assigned by your ISP to your router, so it is the same for any computers connected to the router at that time. You can only have one at a time if that's what you're asking

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Different IP Addresses for the same computer

    All might have the same "outside" IP address, but if you have several PC's in-house connected to the same router - they will all have different "inside" IP addresses assigned (most likely assigned by the router). The router NAT will translate the "inside" addresses into recognizable "outside" paths so that each PC in-house can surf the web independently...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Different IP Addresses for the same computer

    Yeah.. that's the bit I omitted to mention

    But to the outside world for all they know it could be all one PC.

  5. #5
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Different IP Addresses for the same computer

    For what it's worth...

    Before we rebuilt our server/network and bought a new router a couple of months ago...

    Whenever I VPN connected my workstation to one of my "customers" networks I would experience IP-conflicts. Both my internal IP's and my customers internal IP's all started with 10.0.0.x - which of course caused a problem. Also we both had servers with names like SERVER01 - this also caused problems. I made sure that when I rebuilt the network that my main server would not have a generic name like SERVER01 and that I chose a unique internal range (10.0.117.x) for my inside addresses.

    Another point - some of my customers allow me into there networks by "accepting" only the public address that my router expresses. It doesn't matter which machine inside my office is used to "connect" to that customer site - they all appear as the same address (as penagate said).

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Different IP Addresses for the same computer

    Some web offers (usually those for business usage) give you more than one IP address. My brother's web design company for example, they can use 4 different IPs. A single computer can have more than one of these.
    Also, my server has more than one IP internally, where I control IP addresses. There are technical reasons for this setup.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Different IP Addresses for the same computer

    My server used to have two network cards - a different IP address for each card.

    Is that what you mean by a server having more then one IP address?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Different IP Addresses for the same computer

    Nope. With two NICs you can be on two networks - my server does that, on the external and on the internal net.
    However, it has two distinct IPs on the internal net, for a total of three different IPs.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  9. #9
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Different IP Addresses for the same computer

    Curious - why do you do the two inside addresses and how do you do that?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  10. #10
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Different IP Addresses for the same computer

    Why? Two reasons.
    1) I have both a DNS cache and a DNS server. They must use the same port, so they can't use the same IP. I have the cache running on one, and the server on the other.
    2) I need to run both PHP4 and 5. They can't run in the same Apache, so I need two Apaches. Those two can either run on different IPs or different ports. Different ports means I always need to specify the non-standard port, which is bad. (It's the method I use outside, though, where I can't use the more convenient multiple IPs.)

    How? Simple in Linux; you just define aliases. In a Gentoo config, this looks like so:
    Code:
    config_eth0=(
            "192.168.1.1/24"
            "192.168.1.2/24"
    )
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  11. #11
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Different IP Addresses for the same computer

    Oh - interesting...

    edit: More grey-matter used for something I might never need to use

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  12. #12

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Different IP Addresses for the same computer

    Quote Originally Posted by szlamany
    My server used to have two network cards - a different IP address for each card.

    Is that what you mean by a server having more then one IP address?
    When a computer does have two NIC does it mean it can have two Public IP Address?
    Last edited by dee-u; Jan 13th, 2006 at 12:09 AM.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  13. #13
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Different IP Addresses for the same computer

    If you have two routers, one on each NIC. Or they are both directly connected.

  14. #14

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Different IP Addresses for the same computer

    For instance, if I've got an app that uses the webbrowser control, is it possible that each instance of the app could use different public IP?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  15. #15
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Different IP Addresses for the same computer

    Not really, because you'd have to have two different internet configurations at the same time. IE is not that flexible. (Nor is any other browser I know.)
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  16. #16
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Different IP Addresses for the same computer

    What will happen if I have 2 different internet connections ? Which one IE will use ?
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width