在互联网上托管 Perforce 服务器? [英] Hosting Perforce server on internet?

查看:43
本文介绍了在互联网上托管 Perforce 服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的系统 (OSX) 配置为 perforce 服务器,以便与我的编码合作伙伴共享我的项目工作.我想在互联网上托管我的服务器,以便他能够连接到我的系统.我可以通过 this 指南进行配置.像我的魅力一样工作本地主机.

I am configuring my system (OSX) as a perforce server for sharing my project work with my coding partner. I want to host my server on the internet so that he will able to connect to my system. I am able to configure through this guide.Working like charm on my local host.

也许我没有得到什么.

请指导我查找地址或我必须执行哪些额外程序才能将我的系统提供给我的合作伙伴.我在 UNIX 终端命令方面很糟糕我尝试了这些链接,但没有任何答案对我有用.使用动态 ip 强制执行

Please guide me to find an address or what procedure I have to do extra for making my system available to my partner . I am very bad in UNIX terminal command i tried these links but no answer worked for me . Perforce with dynamic ip

在线 Perforce 存储库

一些问题

是否需要静态IP.

如何让我的系统通过 Internet 供合作伙伴使用?

这是我的 p4 信息.

This is my p4 info.

User name: aadi
Client name: aadi-MacBook-Air
Client host: aadi-MacBook-Air.local
Client unknown.
Current directory: /Users/aadi
Client address: 127.0.0.1:50596
Server address: localhost:1666
Server root: .
Server date: 2014/11/18 01:58:14 +0530 IST
Server uptime: 00:00:10
Server version: P4D/DARWIN90U/2011.1/747877 (2013/11/21)
Server license: none
Case Handling: insensitive

推荐答案

我认为您不需要静态 IP,只要您的合作伙伴可以使用您的动态 IP 连接到您即可.

I don't believe you need a static IP, so long as your partner can connect to you using your dynamic IP.

您的服务器必须侦听您的合作伙伴可以访问的 IP 地址,因此localhost:1666"将不起作用,因为localhost"意味着仅接受来自您自己机器的连接.

Your server has to listen on an IP address which is accessible by your partner, so "localhost:1666" will not work, because 'localhost' means to only accept connections from your own machine.

如果您的机器是 192.168.1.101,那么您希望看到如下内容:

If your machine, was, say 192.168.1.101, then you'd like to see something like:

Server address: 192.168.1.101:1666

您应该能够通过以p4d -p 192.168.1.101:1666"的身份启动服务器来完成.

Which you should be able to accomplish by starting your server as 'p4d -p 192.168.1.101:1666'.

您也可以尝试在p4d -p 1666"处启动您的服务器,看看它是否会侦听您合作伙伴机器可访问的地址.应该可以,但如果未明确指定 IP 地址,有时会出现问题.如果您明确指定了您机器的 IP 地址,并且它是一个动态 IP,那么每次您机器的 IP 地址更改时,您都必须在正确的 IP 地址上停止并重新启动您的服务器,这是相当麻烦的(如果您实际上可以部署一个静态IP).

You can also try starting your server at 'p4d -p 1666' and see if it will listen on an address that is accessible by your partner's machine. It should, but occasionally there are problems if the IP address is not explicitly specified. If you explicitly specify your machine's IP address, and it is a dynamic IP, then you will have to stop and restart your server on the correct IP address each time your machine's IP address changes, which is rather an annoyance (and is avoided if you can in fact deploy a static IP).

如果您的动态 IP 分配机制与您组织的 DNS 基础设施良好集成,那么所有关于静态与动态 IP 地址的业务都应该消失,这样您的合作伙伴就可以使用您计算机的主机名而不是 IP 地址.

All this business about static vs dynamic IP addresses should go away if your dynamic IP assignment mechanism is well-integrated with your organization's DNS infrastructure, so that your partner can use the hostname of your computer rather than the IP address.

最后,不要忘记检查您的 OS X 防火墙:http://support.apple.com/en-us/HT201642

Lastly, don't forget to check your OS X firewall: http://support.apple.com/en-us/HT201642

这篇关于在互联网上托管 Perforce 服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆