TCP Communication Without a LAN Connection [closed] - networking

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 months ago.
Improve this question
I want to test my TCP communication program but my PC doesn't have any Ethernet Ports. What can I use to create a testing enviroment for my program?

Any host running TCP/IP has a virtual loopback adapter that responds to IPv4 addresses 127.0.0.0/8 (often only 127.0.0.1 is used), or the IPv6 address ::1.
I'd recommend binding your listener to 0.0.0.0 (the unspecified address, representing any local address) and then connect using 127.0.0.1. For IPv6, use :: or ::0 for listening and connect to ::1.
TCP works in the exact same way as with a real address, so use ports as desired.

Related

How do an application resolve a host inside an ipv4-over-ipv6 network? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 days ago.
Improve this question
Suppose there is an IPv4 over IPv6 network, and a client inside an IPv4 subnet wants to access a server that has both IPv6 and IPv4 addresses. However, the client only knows that it is in an IPv4 network and not an IPv6-supported network. So when the client resolves the server's hostname, it receives an IPv4 address from the +A record(Because it should specify the query-type as +A). How can the client use this IPv4 address to access the server via the IPv6-only network, considering that the subnet accesses the public network via an IPv6 router that only has a public IPv6 address?
I ask the question to chatgpt, but it didn't response a clear answer.

networking a virtual machine from another on the same host? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am trying to connect 2 virtual machines on the same host. Basically trying to ping from one to another. How can it be done if both have same IP address?
edit:
I am currently using hping3 to learn about Denial of service Syn flood. So can the 2 VMs be used for this?
If they share the same IP address this isn't possible. Ping uses ICMP echo requests and replies and ICMP doesn't use ports that could be NATted to different machine.
You'll need to bridge the vNIC to the local network so each VM gets a different IP. Alternatively, you could connect both to an internal, entirely virtual network - depending on what the hypervisor can be configured to do.

Why do we have to use port 8001 when Port Forwarding? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I've tried to do as much research as I can around this and I can't seem to understand one thing. For my University project we were required to do the following:
In VirtualBox Manager select File>Preferences. Select Network and choose NatNetwork (or the one you are using).
Chose the edit network icon.
Select Port Forwarding
In the dialogue box provide a name for the rule (e.g. web), leave the host IP blank, provide a host port (e.g. 8001), then enter the
Guest IP as the IP address of UBUNTU#1 and Guest port as 80 for a web
server (answer yes to any Firewall questions).
Start a simple web server on UBUNTU#1 by using the following command in the terminal window:
sudo python2 -m SimpleHTTPServer 80
Start Wireshark on the private network.
Start a web browser on the host computer and enter x.x.x.x:8001, where x.x.x.x is the IP address of your host computer.
Now we need to explain why do we use this address and port number?
My understanding is that the IP address being used belongs to the router/client on the network we want to make accessible to computers on the internet.
What I don't understand is why we have to use the port 8001?
I've seen that port 8001 is used for diagnostics, I have also seen 8001 is used as it is an available port. But how can it be available if it is being used by someone else.
You can use any port you like as long as both server and client agree on the port number.
Commonly, most services use a "well known" port to make it easy for someone else to connect to them (e.g. TCP 25 for SMTP, UDP 53 for DNS, TCP 80 for WWW, ...).

Forwarding port behind router & voip router [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
So I'm trying to host a server. I feel like this should be straight forward but maybe I'm missing something because it's not working. I'm hosting a server that runs on port 7777 and 27015. I've reserved an ip address of ex: 192.168.0.50 in my router settings along with ports forwarded with that address. So my pc is now 192.168.0.50 with both ports added (tcp/udp enabled).
My layout is : pc > router > voip router > modem. Since I have the router finished, I moved on to the voip router. In my voip router I forwarded both ports under my router's gateway 192.168.0.1. Is this correct or should it still be my computer's ip? My voip router does have a WAN ip assigned.
Am I missing something or did I use the wrong ip for my voip, since my ports still aren't accessible
first check if your modem is a router-modem by checking what is the WAN IP on your voip router (if the WAN IP of the router looks like 192.168.x.x then most likely your modem is acting as a router also and need some configuration done to have the port forward in place. When you have figured this out
make sure you forward the port from your VOIP router to the WAN address on your router. Try testing step by step to figure out where it's failing, First test by connecting a laptop straight into the VOIP router to test if the port forward to your new laptop IP is working good. Then temporarely remove the VOIP router from the equation for a few minute and test with only pc > router > modem to see if port forward works.

ip alias on the same nic with different subnets on Windows 2008R2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Windows 2008R2.
On a NIC, I have 3 ip aliases :
- two have the same subnet and it works well
- the third is on a different subnet
I can ping the third ip.
I can see the packets who are coming on this ip with Wireshark.
I have a service who list on the 0.0.0.0 address.
When I try to connect to this service, it is like the packet are not going to the service.
I tried with netcat also in listen mode and I had the same problem (If I connect via the loopback ip, netcat receive my datas...)
Is the ip aliases have to be on the same subnet on the same nic ?
Thanks in advance
Best regards
This will never work. I tried with an additionnal nic and it worked

Resources