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.
Related
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.
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 4 years ago.
Improve this question
I understand the basics of how ARP works, one host sends out a MAC Broadcast with "Who has this IP?" and some host in the network answers with "I have that IP".
But what happens if a Router is connected to the same LAN, the routers function would be to connect the LAN to the WAN (hope I got that right). Does the host asking for the adress then automatically switch and send a message to the connected router with his data or what happens?
What happens is, that your IP stack first determines to where it needs to send the packet to. If it goes to an IP address that is in a directly connected network, it will send the packet directly, otherwise, it will send the packet to the gateway.
This may sound abstract to you. For a simple case, suppose you have the following network:
host_a host_b
+----------+ +----------+
|10.1.1.101| |10.1.1.102|
+-----+----+ +-----+----+
| | +--------+ <--------->
-----+--------------+-----------+10.1.1.1|--------< INTERNET >
+--------+ <--------->
Router
On your host_a, you will have
ip address 10.1.1.101
netmask 255.255.255.0
default gateway 10.1.1.1
On your host_b, you will have
ip address 10.1.1.102
netmask 255.255.255.0
default gateway 10.1.1.1
Suppose host_a wants to send a packet to 10.1.1.102. If you use the IP address and netmask, you see that it is in the same subnet. So, host_a will send an ARP-request onto the network asking "Hey, who has 10.1.1.102?" Host_b will respond with its MAC-ID.
Now suppose host_a wants to send to 8.8.8.8. That is not on the local network. So, host_a will now send it to its default gateway, 10.1.1.1. Host_a will send an ARP-request "Hey, who has 10.1.1.1?" and the router will respond with its MAC-ID.
The procedure above is a great simplification of what actually happens, but it may help you a step further in how your network works.
(the question may be more appropriate for another SE site, but then someone will probably migrate it)
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, ...).
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 6 years ago.
Improve this question
I have Mikrotik router with Wifi connected to:
WAN/internet on port ether1.
Other ports are for LAN 10.0.1.*.
Only port ether8 is connected to another simple POE switch. Four IP cameras with static IP are connected. This is LAN2 192.168.50.*. Port is not included in bridge or switch.
From main LAN I can access internet and other PC on same LAN, but can't access IP cameras on LAN2.
So, what is wrong/missing in my Mikrotik configuration:
/ip address
add address=10.0.1.1/24 comment="default configuration" interface= ether2-master-local network=10.0.1.0
add address=10.0.0.18/30 interface=ether1-gateway network=10.0.0.16
add address=192.168.50.253/24 interface=ether8-master-local-SUBNET network=
192.168.50.0
/ip route
add distance=2 gateway=10.0.0.17
No ping or trace route can reach LAN2 from main LAN.
If I connect to POE switch with my laptop and configure static IP in range 192.168.50.* than I can access all cameras OK.
If try ping IP camera directly from Mikrotik via ether8 than I get random mix of timeouts and success which is really strange.
Any help is appreciated.
did you set 192.168.50.253 as gateway in your IP cameras ? So they know how to reply to 10.0.1.0/24 when they receive a ping.
As for the random success ping problem, this is weird indeed, maybe an IP conflict (did you try with only 1 camera plugged?)
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
On my home network there is printer I want to print from. I know the the local IP of my printer at home, and I know the IP address of my home router.
From a different location, is there any way I can access the printer with these pieces of information?
From inside the network (while you're connected to your router at home) that would be enough information. However from outside the network, the firewall on the router would have to be set up. The place you would want to set up would be the Port Forwarding feature of your router.
While at home:
1) Login to your router
2) Look for something like "Port Forwarding/Port Triggering", "WAN", "Firewall" or something like that. It will be different on different routers.
3) Most of the time the default port for network printers is 9100 so you can set up traffic coming into the router on port 9100 to be forwarded to the printer's IP address. This is why it's called "Port Forwarding" because you're forwarding traffic on that port.
4) Once that's set up you'll have to set up a printer on your computer and use the public IP address of your home router. For example, it will be something other than "192.168.x.x".
There you have it!