How are IP addresses assigned?

1) If I buy a new computer, I haven't connected to the internet yet, don't I have ip address?

2) if I get the ip in one county, IANA gives me the ip depends on my location (first numbers), if I change my location and connect again, shall I get another one?

Leave Your Comment