[Windows 10 + ESET] Check the Rails app on the actual iPhone via localhost connection


I wanted to check the operation of the Rails application developed on windows 10 on the iPhone. However, I could not connect because of ESET security software and Windows firewall. Although I will investigate for a while, only articles on "Mac OS environment and Android actual machine". That's not what I want to know! !! It's a Windows and iPhone environment! By the way, this article is quite limited to readers, but I will describe how to help those who are suffering from the same environment.

Execution environment

Rails v6.0.3.2 OS:windows10 64bit

Change ESET filtering settings

"Automatic mode with rules (default)" ➡ Go to "Interactive mode".

Launch ESET software and click "Settings"


Click "Network Protection"


Click the gear in the "Network Attack Protection (IDS)" section to change to "Interactive Mode"


Launch a Rails server

The Rails app will not release port 3000 unless otherwise specified. Start with the option -b and pass number 3000.


rails s -b

Access localhost from iPhone

1. Check the IP address of the local host PC

If you open a command prompt and type, the IP configuration will be displayed in a row. The "IPv4 address" will be the IP of your PC.


Ethernet adapter ethernet:
Connection-specific DNS suffix. . . . .:
IPv6 address. . . . . . . . . . . .: xxxx:xxxx:xxxx:x:xxxx:xxx:xxxx:xxxx
Temporary IPv6 address. . . . . . . . . .: xxxx:xxxx:xxxx:x:xxxx:xxxx:xxxx:xxxx
Link-local IPv6 address. . . . .: xxxx::xxxx:xxx:xxxx:xxxxxxx
IPv4 address. . . . . . . . . . . .: 192.168.x.x
sub-net mask. . . . . . . . . .:
default gateway. . . . . . .: xxxx::xxxx:xxxx:xxxx:xxxxxxx

2. Open the browser from your iPhone, whether it's Safari or Chrome.

Access by entering the IP address you found earlier in the address field. At this time, the port of localhost is 3000 by default, so don't forget to specify the port. For example: Example :) 192.168.x.x: 3000

3. Allow and save access from Ruby apps

Check "Create a rule and remember it forever" and click "Allow" キャプチャ4.PNG

4. Change ESET filtering settings

Make sure the connection is correct Follow the procedure you did at the beginning to return to "Interactive mode" ➡ "Automatic mode with rules (default)".

Recommended Posts

[Windows 10 + ESET] Check the Rails app on the actual iPhone via localhost connection
Check the root on the Rails browser
Publish the app made with ruby on rails