Local area connection ip conflict before connect dial up

Page 1 of 2 12 LastLast

  1. Posts : 67
    Microsoft Windows 7 Ultimate 64-bit SP1
       #1

    Local area connection ip conflict before connect dial up


    Hi,

    I am using a Dial up connection but when i have to connect dial up connection then i have to change my local area connection ip.
    Is there any tip or method which is able to my local area connection ip through batch programming/Command prompt ?I need random ips every time before connect from dial up connection.
    please find the below screenshot

    someone told me it would be possible from batch programming.
    I am waiting for your answers.
    I am using Windows 7 64 bit
    4GB RAM
    4MB DSL connection
    Last edited by quicqsolution; 03 Feb 2012 at 04:29.
      My Computer


  2. Posts : 2,726
    Windows 7 Ultimate 64bit
       #2

    You could try making a .bat file (this must be run as administrator)

    netsh interface ip set address "Local Area Connection" static 192.168.1.10 255.255.255.0 192.168.1.1 1
    netsh interface ip set dns "Local Area Connection" static 192.168.1.1

    and another .bat file to change it back if needed

    netsh interface ip set address "Local Area Connection" static 192.168.1.153 255.255.255.0 192.168.1.1 1
    netsh interface ip set dns "Local Area Connection" static 192.168.1.1
      My Computer


  3. Posts : 67
    Microsoft Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #3

    thank you very much for your reply.

    I checked this batch already. I am looking for a command which is able to change random ips every after i run that batch file.
    I always select ips from this list .

    192.168.1.2
    192.168.1.3
    192.168.1.4
    192.168.1.5
    192.168.1.6
    192.168.1.7
    192.168.1.8
    192.168.1.9
    192.168.1.10
    192.168.1.11
    192.168.1.12
    192.168.1.13
    192.168.1.14
    192.168.1.15
    192.168.1.16
    192.168.1.17
    192.168.1.18
    192.168.1.19
    192.168.1.20
    192.168.1.21
    192.168.1.22
    192.168.1.23
    192.168.1.24
    192.168.1.25
    192.168.1.26
    192.168.1.27
    192.168.1.28
    192.168.1.29
    192.168.1.30
    192.168.1.31
    192.168.1.32
    192.168.1.33
    192.168.1.34
    192.168.1.35
    192.168.1.36
    192.168.1.37
    192.168.1.38
    192.168.1.39
    192.168.1.40
    192.168.1.41
    192.168.1.42
    192.168.1.43
    192.168.1.44
    192.168.1.45
    192.168.1.46
    192.168.1.47
    192.168.1.48
    192.168.1.49
    192.168.1.50
    192.168.1.51
    192.168.1.52
    192.168.1.53
    192.168.1.54
    192.168.1.55
    192.168.1.56
    192.168.1.57
    192.168.1.58
    192.168.1.59
    192.168.1.60
    192.168.1.61
    192.168.1.62
    192.168.1.63
    192.168.1.64
    192.168.1.65
    192.168.1.66
    192.168.1.67
    192.168.1.68
    192.168.1.69
    192.168.1.70
    192.168.1.71
    192.168.1.72
    192.168.1.73
    192.168.1.74
    192.168.1.75
    192.168.1.76
    192.168.1.77
    192.168.1.78



    ..................
    continue.
      My Computer


  4. Posts : 67
    Microsoft Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #4

    please help me~
      My Computer


  5. Posts : 4,466
    Windows 10 Education 64 bit
       #5

    Why not just switch it to "Obtain an IP address automatically"? If you have to use a static IP for something else enter it under the Alternate Configuration Tab. If you do that your PC will try to obtain an IP though DHCP first, and then if it can't it will use the static IP set under the alternate tab. You'll have to wait for it to time out but it will switch on its own.
      My Computer


  6. Posts : 2,726
    Windows 7 Ultimate 64bit
       #6

    I'm curious to know why you would need to change your local IP address randomly for a dial up connection ?
      My Computer


  7. Posts : 4,466
    Windows 10 Education 64 bit
       #7

    192.168.x.xxx are private IP address's, wouldn't you normally get a public IP from your ISP if on dial up? Plus your screen shot shows a NIC not a modem? Could you describe your network setup and how you currently get internet? A private IP address (LAN) cannot be seen from the Internet (WAN) so it you are changing it to try and hide from something you are doing it all wrong and wasting your time?
      My Computer


  8. Posts : 67
    Microsoft Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #8

    PooMan UK said:
    I'm curious to know why you would need to change your local IP address randomly for a dial up connection ?
    Because dial up doesn't connect some time. Due to Ip conflict. that is why i want to get every time random ip.

    like

    192.168.1.6
    192.168.1.7
    192.168.1.8
    192.168.1.9
    192.168.1.10
    192.168.1.11
    192.168.1.12
    192.168.1.13
      My Computer


  9. Posts : 67
    Microsoft Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #9

    alphanumeric said:
    192.168.x.xxx are private IP address's, wouldn't you normally get a public IP from your ISP if on dial up? Plus your screen shot shows a NIC not a modem? Could you describe your network setup and how you currently get internet? A private IP address (LAN) cannot be seen from the Internet (WAN) so it you are changing it to try and hide from something you are doing it all wrong and wasting your time?
    I have own DSL connection with phone line.

    I am not looking for WAN ip i just change my lan ip for my dial up because sometime dialup doesn't connect due to ip conflict that is why i want to get random lan ips.

    like


    192.168.1.6
    192.168.1.7
    192.168.1.8
    192.168.1.9
    192.168.1.10
    192.168.1.11
    192.168.1.12
    192.168.1.13
      My Computer


  10. Posts : 4,466
    Windows 10 Education 64 bit
       #10

    You keep saying Dial up, DSL isn't dial up? Are you connecting though DSL or your PC's modem? Two devices (PC's) on the same network (LAN) cannot have the same IP address or you will get a conflict error. You are getting them because you are setting your static IP to the same IP address as another PC on your network. Randomly picking one isn't going to help it its already in use. If you are going to use a static IP you need to set it to value outside of the range given out by your router or whatever is doing DHCP on your network. The IP address range in use will be listed in your router settings. The simple solution to this is to set your PC obtain a Dynamic IP. If you do that and still get conflict errors then you have mis-configured another PC on your LAN. You can't just randomly pick IP's if you also have DHCP assigning them too.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

İ Designer Media Ltd
All times are GMT -5. The time now is 01:56.
Find Us