I'm very confused about how to address a computer on my local network via ipv6. I am writing a server which is meant to support both ipv4 and ipv6. Now I have don an ifconfig and gotten my ipv4 local ip address, however I get inet6 addr: fe80::224:d7ff:fe3e:db44/64 Scope:Link for the ipv6. From what I have read I cannot use this to address the box on my local network right? I guess I just don't quite understand the whole scoping stuff for ipv6 and if someone could explain it to me like I was 5 that would be great. Will I not be able to address it because of how the network is set up?  Just in case it helps I have a dlink dir-601 as my main router.
120918
I am using the .NET Framework classes to get the IP addresses for my machine.   Dns.GetHostAddresses(Dns.GetHostName())   I have a VirtualBox adapter which has both an IPv4 and IPv6 address. Using the .NET code I am getting the IPv6 address as fe80::71a3:2b00:ddd3:753f%16   Notice the %16 at the end?    However, if I query the same using WMI, I am getting the address as 'fe80::71a3:2b00:ddd3:753f'  So, does the %16 have any special significance?   Edit:   I just had some more observations about this. And they match pretty well with what Stephen Jennings said in his answer.   I installed Vmware to see what IPv6 address it issued. The addresses were :  fe80::3dd0:7f8e:57b7:34d5%19  fe80::b059:65f4:e877:c40%20  Clearly, the numbers after % are not some hex representation. I checked all the properties available for a network adapter using Wmi and found that the numbers are exactly same as the InterfaceIndex property of each network adapter. As per , it uniquely identifies each network adapter and this property was introduced in Vista.   What still confused me was why would the IPAddress class allow you to create an ip address in that format unless it was valid. The answer was provided by Stephen. The number is the scope id. IPAddress has a constructor that accepts the address AND a scope id.   Oh, and all these three network adapters were link local. Confirmed it via ipconfig  Cool. That was interesting!!
63688
So I have two IP addresses - one is on my network settings and is 192.168.0.X. Another one - I checked this address online - is 108.X.X.X. What's the difference between these two IP addresses? Does it have something to do with local vs internet IP addresses? Can someone please explain these two concepts?
8841
This is a  about Hairpin NAT (Loopback NAT).   The generic form of this question is:  We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are available externally. We have DNS pointing to the external IP. Local network clients fail to connect, but external work.   Why does this fail? How can I create a unified naming scheme (DNS names which work both locally and externally)?   This question has answeres merged from multiple other questions. They originally referenced FreeBSD, D-Link, Microtik, and other equipment. They're all trying to solve the same problem however.
31932
My PC is behind a NAT router that has a public IP address. If I want to host a website then I believe I need a domain name which I can purchase from some site which would pledge to resolve all DNS requests for that domain name and send the IP address of my NAT router (assuming I do not want to host my domain name on their servers). Now I want to host a web server on my computer.   What changes should be done to the NAT router's configuration to forward all HTTP requests for example.com to my PC in the internal network. Is the above strategy correct? Is it commonly used?
7540
I know that the ip tool lets you bind multiple addresses to an interface (eg, ). Right now, though, I'm trying to build something on top of IPv6, and it would be really useful to have an entire block of addresses (say, a /64) available, so that programs could pick any address from the range and bind to that. Needless to say, attaching every IP from this range to an interface would take a while.  Does Linux support binding a whole block of addresses to an interface?
109826
The following IP address is for my network interface  $ nmap 192.168.0.142  Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-09 11:33 EST Nmap scan report for ocean (192.168.0.142) Host is up (0.00047s latency). Not shown: 996 closed ports PORT     STATE SERVICE 22/tcp   open  ssh 80/tcp   open  http 111/tcp  open  rpcbind 3306/tcp open  mysql  Nmap done: 1 IP address (1 host up) scanned in 0.97 seconds   Are those services shown below but not above exactly those that are closed to the outside but open within my local machine?   Are the services whose security that I should worry about exactly those listed above?  Thanks.  $ nmap localhost  Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-09 11:34 EST Nmap scan report for localhost (127.0.0.1) Host is up (0.00046s latency). Other addresses for localhost (not scanned): Not shown: 993 closed ports PORT     STATE SERVICE 22/tcp   open  ssh 80/tcp   open  http 111/tcp  open  rpcbind 631/tcp  open  ipp 3306/tcp open  mysql 5432/tcp open  postgresql 9050/tcp open  tor-socks  Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds
54905
I have a security system and the network setting only allows a three-digit IP address. I can't set it to 192.168.2.100, instead I have to use 192.168.002.100.  Are these two IP addresses different? Do I need to set my router's LAN to be all 192.168.xxx.xxx in order for this to work correctly? I can't find any solid information about this.
10329
I am running multiple web servers in my house, each of which is plugged into my router.  Server A Server B Server C  I currently can only use one server since my IP (xx.xxx.xx.xx) port 80 is pointing towards server A. However some domains point to server A, some to B, etc.  With my one IP address, how do I point to each server? For example my A(host) records all point to just my IP address.  Sorry if I sound confusing. Let me know if I am not being clear.  Each server is running Ubuntu Server 12.04.02 and is using Apache (if that helps). My router is also a Netgear and my ISP is Time Warner Cable.
43509
I am a new with Linux, having years experience with Windows servers/desktops and am having issues setting a static IP. I am using a method used for previous versions of Ubuntu, which doesn't seem to work with 16.04  I have used the command sudo nano /etc/network/interface and added the following  iface enp0s25 inet static address 10.10.8.2 netmask 255.255.0.0 gateway 10.10.1.1 dns-nameservers 8.8.8.8 8.8.4.4   I have rebooted the system and the Ethernet is pretty much dead, ping doesn't work at all. I have tried to modify /etc/NetworkManager/NetworkManager.conf and made the following changes  #dns=dnsmasq (comment out the dnsmasq) [ifupdown] managed=true (changed from false)   With this I can get Ethernet to work sporadically, however it eventually fails.  I have tried this configuration on two other machines plus a virtual machine as well and all have the same results. I can confirm these settings work fine when I install Windows on any of these machines. As well when I let DHCP auto configure, everything works fine no issues.  I figure I am missing something here, setting up a static IP should not be difficult at all.
48486
I'm doing some computer network homework and I'm supposed to develop some sort of Peer to Peer file sharing software, and when I wanna test it I need to run a few (5) instances on my linux/Ubuntu 11.10 . which means each one need to has a unique IP address. I heard I can do that but I dunno how. how can I have many IP addresses on a single computer? thanks
124107
I'm having a really hard time configuring ubuntu 13.04 to have a static ip address. I have tried multiple solutions but everytime I reboot (can't do the network reset command because ubuntu freezes) I end up with no connection.  Here is what I get when i type ifconfig into the terminal:  eth0      Link encap:Ethernet  HWaddr 10:bf:48:bc:07:cb             inet addr:192.168.0.8  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: fe80::12bf:48ff:febc:7cb/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1763067 errors:0 dropped:0 overruns:0 frame:0           TX packets:1024326 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:2284491220 (2.2 GB)  TX bytes:136809317 (136.8 MB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:1840 errors:0 dropped:0 overruns:0 frame:0           TX packets:1840 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:185688 (185.6 KB)  TX bytes:185688 (185.6 KB)   I have also tried this:  auto lo iface lo inet loopback auto eth0 iface eth0 inet static         address 192.168.0.160         netmask 255.255.255.0         broadcast 192.168.0.255         gateway 192.168.0.1         dns-nameservers 24.222.0.94         dns-nameservers 24.222.0.95   If anyone could help me it would be very much appreciated.
95270
I am trying to Load test on the link:  and getting this error message:   Expected closing bracket for IPv6 address at index 28  Please could you help  Tuti
89480
I need to show somebody a website running on my local machine tomorrow. Normally I'd accomplish this by port forwarding on my local router but thanks to failing hardware and its replacement being awful, my current router doesn't let me do port forwarding.  So stuck with this delay and not wanting to push the whole thing onto a proper server, I had a crazy idea: Can I just forward my port to an external server over SSH?  I've done port tunnelling before but I usually do it the right way around:   I connect to a remote box and ask that port 12345 shows up on my local machine at port 12345. I start something on P12345 on the remote machine I can access it via localhost:12345   What I want to do:   Connect to a remote PC and ask that that its local P12345 fetch things from my local P12345 (over the tunnel) I start something on my local computer on P12345 Other people can access remote:12345 and see my localhost:12345
92875
I'm learning about private/public IPs, port forwarding and NAT, and still fail to see the answer to a simple question:  Suppose two users on the same network are communicating with a single server outside their network (say, me &amp; my wife send http requests to yahoo.com).  The server sees both users as a single public ip, and often - as in this case - communicating on the same port.  How does the router route the packets according to the two different connections? Is there any routing info inside the packet beyond ip/port?  Is there some 'session table' maintained somewhere? By whom and what exactly does it include?
38489
My setup  I have a linux server running in my basement. I currently have my router looking to that server for DNS lookup, so I can use named to spoof a bunch of domain names to point to my local server's local address, 192.168.0.111. This works great.  I also am running Apache and PHP on this server, and have forwarded port 80 on my router to this machine, so my public IP xx.xxx.x.xx is sent to the basement server.  This is a great development set up for me, because I can develop websites in my local network and pull them up on numerous devices with a *.mylocal.net address. I can also quickly share a website on my public IP with others that are outside of my network.  I have a static IP, so that makes this even easier.  The problem  Some applications need to have an absolute URL. My spoofed DNS doesn't work outside my network, and neither does my internal IP address.  I need to be able to access the sites at the same IP that they are accessed publicly, which is my public IP: xx.xxx.x.xx    For some reason, I can't access my own public IP address from within my own network.  My router's public IP is xx.xxx.x.xx, and when I hit xx.xxx.x.xx from outside my network I see exactly what I want -- my development website. But, when I hit xx.xxx.x.xx from inside my network, the connection times out.    I assume my ISP has a firewall that blocks requests from xx.xxx.x.xx to xx.xxx.x.xx where the origin and the destination are the same IP (or maybe this is impossible on any network?)  So how can I set up my network to forward the internal request to my public IP to the local IP of my basement server?   I would like to do this within the local DNS server I set up, or in my router, so the change can be applied to all devices in my network, and not just the basement server or the windows tablet/laptop, etc individually.
95438
Is there a command line based way to send pings to each computer in a subnet? Like  for(int i = 1; i &lt; 254; i++)     ping(192.168.1.i);   to enforce arp resolution?
68959
We can use multiple IP addresses for a single interface in Linux (eg. eth0:0, eth0:1). But can we use DHCP and static IP at the same time? eth0:1 should have a static IP address and eth0:0 should be configured using DHCP.  How can we accomplish both?