can t assign requested address

Can’t assign requested address (code=49) is a bug in Mac OS X, and not an issue with OVPN itself.

There are two ways of fixing this issue. The first one is easier as you simply have to restart your computer. Otherwise, you can solve the problem through the terminal. If you have a cable connection, you type the following into a terminal:

sudo ifconfig en0 down

sudo route flush

sudo ifconfig en0 up

If you instead use WiFi, you type:

sudo ifconfig en1 down

sudo route flush

sudo ifconfig en1 up

Type every line separately. If asked for your password, simply type the password for your computer and not for OVPN.

If the command sudo route flush takes longer than 10 seconds to complete, hold down Ctrl + C.

My server software says errno99: cannot assign requested address while using an ip address other than for binding.

But if the IP address is it works. Is it related to namespaces?

I am executing my server and client codes in another python program by calling execfile() . I am actually editing the mininet source code.I edited and inside that I used execfile(‘’) execfile(‘’) and execfile(‘’).So as soon as «sudo mn —topo single,3» is called along with the creation of 3 hosts my server and client codes will get executed.I have given my server and client codes below.

3 Answers 3

Stripping things down to basics this is what you would want to test with:

This works assuming a few things:

  1. Your local IP address (on the server) is (This video shows you how)
  2. No other software is listening on port 6677
Читайте также:  battlefield 4 раздают бесплатно

Also note the basic concept of IP addresses:

Try the following, open the start menu, in the «search» field type cmd and press enter. Once the black console opens up type ping and this should give you and IP address for google. This address is googles local IP and they bind to that and obviously you can not bind to an IP address owned by google.

With that in mind, you own your own set of IP addresses. First you have the local IP of the server, but then you have the local IP of your house. In the below picture is the local IP of the server which you can bind to. You still own but the problem is that it’s owned by the Router and not your server. So even if you visit and that tells you that your IP is that is not the case because it can only see where you’re coming from.. and you’re accessing your internet from a router.

can t assign requested address

In order for your friends to access your server (which is bound to ) you need to forward port 6677 to and this is done in your router. Assuming you are behind one.

If you’re in school there’s other dilemmas and routers in the way most likely.

can t assign requested address

write UDP: Can’t assign requested address (code=49)

This error indicates an issue with the network adapters on your system.

The easiest fix is to do a reboot, you should be able to connect after that. If you prefer not to reboot and have some skills with the terminal:

Читайте также:  30 fps это нормально

Step 1. Open Applications > Utilities, then select Terminal.
Step 2. Type in the following commands:

sudo ifconfig en1 down
sudo route flush
sudo ifconfig en1 up

You would have to type in your admin password as well after that.

Please make sure to replace en1 with your actual Internet interface. By default you have:
en0: ethernet (wired) interface
en1: wlan (wireless) interface

To find out which interface is your Internet interface, you can use the following command in the Terminal: sudo ifconfig

Оцените статью
Все о Windows 10
Добавить комментарий