Swift 可以在端口80上使用Realm Mobile Platform同步服务器吗?

Swift 可以在端口80上使用Realm Mobile Platform同步服务器吗?,swift,realm,realm-mobile-platform,Swift,Realm,Realm Mobile Platform,我想通过公共wifi使用Realm移动平台同步服务器,防火墙中只有端口80打开 是否可以将Realm Mobile Platform(Realm Object Server)和客户端API配置为跨端口80而不是默认的9080工作?是。可以通过适当设置configuration.yml来更改端口 请参阅configuration.yml上的proxy、network和sync部分 ... proxy: http: listen_address: '::' ## The po

我想通过公共wifi使用Realm移动平台同步服务器,防火墙中只有端口80打开


是否可以将Realm Mobile Platform(Realm Object Server)和客户端API配置为跨端口80而不是默认的9080工作?

是。可以通过适当设置
configuration.yml
来更改端口

请参阅
configuration.yml
上的
proxy
network
sync
部分

...
proxy:

  http:
    listen_address: '::'

    ## The port that the HTTP proxy module should bind to.
    # listen_port: 9080

  https:
    ## The port that the HTTPS proxy module should bind to.
    # listen_port: 9443

network:
  http:
    ## The port on which to listen for incoming requests to the Dashboard
    ## and authentication APIs. This defaults to 27080.
    # listen_port: 27080

sync:
  ## Synchronization service settings, including clustering and load balancing.
  servers:
...
以下是
configuration.yml
的摘录

...
proxy:

  http:
    listen_address: '::'

    ## The port that the HTTP proxy module should bind to.
    # listen_port: 9080

  https:
    ## The port that the HTTPS proxy module should bind to.
    # listen_port: 9443

network:
  http:
    ## The port on which to listen for incoming requests to the Dashboard
    ## and authentication APIs. This defaults to 27080.
    # listen_port: 27080

sync:
  ## Synchronization service settings, including clustering and load balancing.
  servers:
...

对。可以通过适当设置
configuration.yml
来更改端口

请参阅
configuration.yml
上的
proxy
network
sync
部分

...
proxy:

  http:
    listen_address: '::'

    ## The port that the HTTP proxy module should bind to.
    # listen_port: 9080

  https:
    ## The port that the HTTPS proxy module should bind to.
    # listen_port: 9443

network:
  http:
    ## The port on which to listen for incoming requests to the Dashboard
    ## and authentication APIs. This defaults to 27080.
    # listen_port: 27080

sync:
  ## Synchronization service settings, including clustering and load balancing.
  servers:
...
以下是
configuration.yml
的摘录

...
proxy:

  http:
    listen_address: '::'

    ## The port that the HTTP proxy module should bind to.
    # listen_port: 9080

  https:
    ## The port that the HTTPS proxy module should bind to.
    # listen_port: 9443

network:
  http:
    ## The port on which to listen for incoming requests to the Dashboard
    ## and authentication APIs. This defaults to 27080.
    # listen_port: 27080

sync:
  ## Synchronization service settings, including clustering and load balancing.
  servers:
...
他们说:

您还必须选择1024以上的端口号作为领域对象 服务器不以root用户身份运行。建议使用默认端口 (9443)

如果您希望能够连接到服务器上的领域对象服务器 端口低于1024,如默认HTTPS端口443,可以 将流量转发到域对象服务器正在侦听的端口:

sudo iptables-A预路由-t nat-p tcp-dport 443-j重定向 --到9443端口

因此,要使用端口80成功连接,可以保留默认http。侦听9080处的\u端口并运行以下命令:

sudo iptables-A预路由-t nat-p tcp-dport 80-j重定向-到端口9080

说:

您还必须选择1024以上的端口号作为领域对象 服务器不以root用户身份运行。建议使用默认端口 (9443)

如果您希望能够连接到服务器上的领域对象服务器 端口低于1024,如默认HTTPS端口443,可以 将流量转发到域对象服务器正在侦听的端口:

sudo iptables-A预路由-t nat-p tcp-dport 443-j重定向 --到9443端口

因此,要使用端口80成功连接,可以保留默认http。侦听9080处的\u端口并运行以下命令:

sudo iptables-A预路由-t nat-p tcp-dport 80-j重定向-到端口9080