Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php on line 6131

Deprecated: Creation of dynamic property ACF::$fields is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/fields.php on line 138

Deprecated: Creation of dynamic property acf_loop::$loops is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/loop.php on line 28

Deprecated: Creation of dynamic property ACF::$loop is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/loop.php on line 269

Deprecated: Creation of dynamic property ACF::$revisions is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/revisions.php on line 397

Deprecated: Creation of dynamic property acf_validation::$errors is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/validation.php on line 28

Deprecated: Creation of dynamic property ACF::$validation is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/validation.php on line 214

Deprecated: Creation of dynamic property acf_form_customizer::$preview_values is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-customizer.php on line 28

Deprecated: Creation of dynamic property acf_form_customizer::$preview_fields is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-customizer.php on line 29

Deprecated: Creation of dynamic property acf_form_customizer::$preview_errors is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-customizer.php on line 30

Deprecated: Creation of dynamic property ACF::$form_front is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-front.php on line 598

Deprecated: Creation of dynamic property acf_form_widget::$preview_values is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-widget.php on line 34

Deprecated: Creation of dynamic property acf_form_widget::$preview_reference is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-widget.php on line 35

Deprecated: Creation of dynamic property acf_form_widget::$preview_errors is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-widget.php on line 36

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the all-in-one-wp-migration domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php on line 6131

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/wp_plugin/wp_plugin.php on line 23

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 54

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1539

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 828

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rocket domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php on line 6131

Deprecated: Creation of dynamic property acf_field_oembed::$width is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-oembed.php on line 31

Deprecated: Creation of dynamic property acf_field_oembed::$height is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-oembed.php on line 32

Deprecated: Creation of dynamic property acf_field_google_map::$default_values is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-google-map.php on line 33

Deprecated: Creation of dynamic property acf_field__group::$have_rows is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-group.php on line 31

Deprecated: Creation of dynamic property acf_field_clone::$cloning is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-clone.php on line 34

Deprecated: Creation of dynamic property acf_field_clone::$have_rows is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-clone.php on line 35

Deprecated: Creation of dynamic property jh_acf_field_table::$settings is deprecated in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-content/plugins/advanced-custom-fields-table-field/class-jh-acf-field-table.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/functions.php:6131) in /var/www/vhosts/studiogo.tech/httpdocs/upcloudold/wp-includes/rest-api/class-wp-rest-server.php on line 1902
{"id":24616,"date":"2015-12-04T15:02:22","date_gmt":"2015-12-04T13:02:22","guid":{"rendered":"https:\/\/upcloud.com\/community\/tutorials\/configure-floating-ip-windows"},"modified":"2015-12-04T15:02:22","modified_gmt":"2015-12-04T13:02:22","slug":"configure-floating-ip-windows","status":"publish","type":"tutorial","link":"https:\/\/studiogo.tech\/upcloudold\/tutorial\/configure-floating-ip-windows\/","title":{"rendered":"How to configure Floating IP on Windows"},"content":{"rendered":"\n

When you attach a new floating IP, you can find it listed to one of the servers at your UpCloud control panel that the floating IP currently points to. However, using the new floating IP will require some manual setup. Follow the steps below on how to get this done on Ubuntu servers.<\/p>\n\n\n\n

As an example, we have a cloud server with the public IP address 185.20.139.167, a floating IP 185.20.139.29, with a netmask 255.255.255.255. These are highlighted below in red<\/span>.<\/p>\n\n\n\n

Before making changes to your network configuration, it\u2019s always a good idea to take a backup<\/a>. Also, note that if your network configuration becomes inoperable, remember that you can always log in to your cloud server using the console connection<\/a>.<\/p>\n\n\n\n

\n
Test hosting on UpCloud!<\/a><\/div>\n<\/div>\n\n\n\n

Setting up a static IP address<\/h2>\n\n\n\n

Firstly, you\u2019ll need to configure the servers at the OS level, so start up your servers at your\u00a0UpCloud Control Panel<\/a>\u00a0and\u00a0log in<\/a>.<\/p>\n\n\n\n

Windows servers need to set a network interface for the floating IP to static either through the network settings properties or by using netsh<\/tt> on the command prompt. For public floating IPs, the right interface for this is the primary public IPv4 adapter, often named simply Ethernet<\/tt>.<\/p>\n\n\n\n

Next, check the network connection name. Open the Windows Command Prompt as administrator (cmd on run) and enter the following command.<\/p>\n\n\n\n

netsh interface ip show config<\/pre>\n\n\n\n

If you are configuring a public floating IP, find the network adapter with your public IPv4 address. It is usually called \u201cEthernet<\/tt>\u201d like in the example output below.<\/p>\n\n\n\n

Configuration for interface \"Ethernet\"\n   DHCP enabled:                         Yes\n   IP Address:                           185.20.139.167<\/span>\n   Subnet Prefix:                        185.20.136.0\/22 (mask 255.255.252.0<\/span>)\n   Default Gateway:                      185.20.136.1<\/span>\n   Gateway Metric:                       0\n   InterfaceMetric:                      5\n   DNS servers configured through DHCP:  94.237.127.9\n                                         94.237.40.9\n   Register with which suffix:           Primary only\n   WINS servers configured through DHCP: None<\/pre>\n\n\n\n

Once you\u2019ve identified the right network interface and found your IP information, use the next command by giving the network_adapter<\/tt>, ip_address<\/tt>, netmask<\/tt> and gateway<\/tt>. This will set the interface to static configuration.<\/p>\n\n\n\n

netsh interface ip set address \"network_adapter\" static ip_address netmask gateway<\/pre>\n\n\n\n

For this public floating IP example setup, on server 1 the command would be the following.<\/p>\n\n\n\n

netsh interface ip set address \"Ethernet\" static 185.20.139.167 255.255.252.0 185.20.136.1<\/span><\/pre>\n\n\n\n

Your remote desktop connection might get interrupted\u00a0for a few seconds while changes are being applied but should reconnect shortly.\u00a0In case you do lose connection and are unable to reconnect, you can always use the web Console<\/em> at the UpCloud Control Panel<\/a> under your server settings to go through the setup again to make sure everything is entered correctly.<\/p>\n\n\n\n

After setting a public IP address to static you will need to add at least one domain name server. Use the command below to add the DNS addresses as shown in the interface configuration output to the same network adapter as you set the static IP.<\/p>\n\n\n\n

netsh interface ip add dns \"Ethernet<\/span>\" 94.237.127.9\nnetsh interface ip add dns \"Ethernet<\/span>\" 94.237.40.9 index=2<\/pre>\n\n\n\n

Repeat the steps on your other server you wish to use the floating IP on to configure them with static IP and DNS addresses as well.<\/p>\n\n\n\n

Configuring the floating IP<\/h2>\n\n\n\n

To enable the floating IP, you need to add it as an alias to the NIC with your static IP. Start by checking which of your servers the floating IP is attached to. You will see the floating IP as an additional IP address under your  Networks<\/em> tab in the UpCloud Control Panel<\/a>. Configured the floating IP on that server as instructed below.<\/p>\n\n\n\n

Windows has the option to add an alias IP address to your primary network connection through the advanced properties, but the simplest way is to use netsh<\/tt> on the command prompt. If you have multiple Windows systems you wish to use the floating IP on, only add it to one server at a time.<\/p>\n\n\n\n

On the server that the floating IP is attached to, Windows has likely created a new network interface that is reserving the address. Check the list of network adapters and find the interface with the floating IP. Make note of the name of the interface and disable it with the following command on the Command Prompt. This only applies to the first server.<\/p>\n\n\n\n

netsh interface set interface \"network_adapter\" disable<\/pre>\n\n\n\n

Next, use the command below while replacing the network_adapter<\/tt>, floating_ip<\/tt> and netmask<\/tt> with the information specific to your server.<\/p>\n\n\n\n

netsh -c interface ip add address name=\"network_adapter\" addr=floating_ip mask=netmask<\/pre>\n\n\n\n

For example with a public floating IP, the command would be the following.<\/p>\n\n\n\n

netsh -c interface ip add address name=\"Ethernet<\/span>\" addr=185.20.139.29<\/span> mask=255.255.255.255<\/pre>\n\n\n\n

Repeat the process to add the alias on any other servers you wish to use the floating IP on.<\/p>\n\n\n\n

Testing the configuration<\/h2>\n\n\n\n

Your configuration is now complete. You can test that it works by transferring the floating IP from one server to another.<\/p>\n\n\n\n

The first attempt to connect to your server through the floating IP with Remote Desktop Connection. Or if you have a web server configured, open the floating IP on your web browser.<\/p>\n\n\n\n

Then transfer the floating IP to another cloud server you\u2019ve configured. This can be done either at your UpCloud Control Panel<\/a> or by using the UpCloud API<\/a>.<\/p>\n\n\n\n

Test the floating IP again with any method you prefer. When you get a connection you have successfully transferred your floating IP.<\/p>\n\n\n\n

Note that the Windows Firewall blocks inbound ICMP requests used by ping<\/tt>, allow these if you wish to test the floating IP with ping<\/tt>.<\/p>\n\n\n\n

When you get a reply, the floating IP works on that server and you can continue forward. If it didn\u2019t work, make sure you entered the IP address and netmask correctly, and that your firewall isn\u2019t blocking your connections, or try another method to connect.<\/p>\n\n\n\n

Using your new floating IP<\/h2>\n\n\n\n

You can now transfer the floating IP between your cloud servers at your UpCloud Control Panel<\/a> or by using the UpCloud API<\/a>!<\/p>\n\n\n\n

Depending on your intended use case for the floating IP you may wish to continue by setting up automated load balancing, but it\u2019s always possible to manually transfer the traffic between your servers.<\/p>\n","protected":false},"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","community-category":[109,111,119],"class_list":["post-24616","tutorial","type-tutorial","status-publish","hentry","community-category-upcloud-services","community-category-networking","community-category-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/tutorial\/24616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/tutorial"}],"about":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/types\/tutorial"}],"replies":[{"embeddable":true,"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/comments?post=24616"}],"wp:attachment":[{"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/media?parent=24616"}],"wp:term":[{"taxonomy":"community-category","embeddable":true,"href":"https:\/\/studiogo.tech\/upcloudold\/wp-json\/wp\/v2\/community-category?post=24616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}