服务器-客户端连接! [英] Server-client connection !

查看:108
本文介绍了服务器-客户端连接!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有一个客户端-我第一次制作的服务器程序,用于教育目的:cool:

我的问题是这样的:
通过将作为客户端连接到我自己的程序(正在监听服务器)进行测试,服务器和客户端是同一台机器.
一切正常!

尝试将其连接到不同的设备(服务器和客户端)时,每次尝试连接到服务器时都会收到权限被拒绝".

我使用本地IP.
例如,我的服务器是192.168.2.2,我的客户端是192.168.2.4

测试不需要端口转发.

我已经搜索了一段时间了,谷歌搜索等,我可以使用一些帮助! :doh:

Hi there,

I have a client - server program that I''ve made for the very 1st time, for educational purposes :cool:

My problem is this:
Testing it, server and client was the same machine, through the program I connected as a client to my self (being a server listening).
All works fine!

Trying it to different devices, server and client each, when I try to connect to the server I get every time ''Permission denied''.

I use local IPs.
For example, my server is 192.168.2.2 and my client 192.168.2.4

No port forwarding needed for the test.

I''ve been searching for an answer for some time now, google-ing etc, I could use some help! :doh:

推荐答案

好吧,我对C ++的了解不多,但在这里看起来却是安全设置和权限的问题.您需要允许与服务器的远程连接,可能是防火墙权限等等.

您尝试通过客户端与服务器建立的连接类型没有与服务器进行通信的适当凭据.
Well, I am not much into C++, but out here it looks issue of security settings and permissions. You need to allow remote connections to the server, might be firewall permissions or so... try disabling the firewall and see.

The kind of connection you are trying to make to server via client is not having proper credentials to talk to server.


这篇关于服务器-客户端连接!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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