Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C# Programming › Socket Programming help

Socket Programming help

Posts 1–8 of 8 · Page 1 of 1
IT
itouchlover
Socket Programming help
So I made a server and a client in C# using sockets. when i run both the client and the server on the same machine it connects. but if i run the server on my machine and the client on someone else's machine on different networks, it won't connect :/ Basically all the program does is say "Connected" if the server and client make a connection. does anyone have any ideas on how to make it work? Thanks!
#1 · 15y ago
'Bruno
'Bruno
Quote Originally Posted by itouchlover View Post
So I made a server and a client in C# using sockets. when i run both the client and the server on the same machine it connects. but if i run the server on my machine and the client on someone else's machine on different networks, it won't connect :/ Basically all the program does is say "Connected" if the server and client make a connection. does anyone have any ideas on how to make it work? Thanks!
1- Make sure you are using correct IP's (Not localhost or 127.0.0.1)
2- Make sure that the server has the port which receives the connection open
3- No Firewall blocking..
4- Profit??
#2 · 15y ago
IT
itouchlover
1- i checked the corrected IP is used.
2- "TcpListener tcplistener = new TcpListener(IPAddress.Any, 9572);" that opens the server on port 9572 and accepts any IPAddress. right?
3- How would i know?
4- As of now no but i have been thinking 'bout it so probably in the near future. why?
#3 · 15y ago
'Bruno
'Bruno
Quote Originally Posted by itouchlover View Post
1- i checked the corrected IP is used.
2- "TcpListener tcplistener = new TcpListener(IPAddress.Any, 9572);" that opens the server on port 9572 and accepts any IPAddress. right?
3- How would i know?
4- As of now no but i have been thinking 'bout it so probably in the near future. why?
if you are behind a firewall or a port blocked (Router) which is blocking your outside connections, you never reach the server...
#4 · 15y ago
IT
itouchlover
how do i change firewall settings on Windows 7? i'm still getting used to it so i don't know yet! Thanks
#5 · 15y ago
AS
asdj3h93984h32hndnansd
how do i change firewall settings on Windows 7? i'm still getting used to it so i don't know yet! Thanks
go ahead : How to Use Windows 7 Firewall
#6 · 15y ago
'Bruno
'Bruno
its not necessarily your windows firewall.. but might be router one too. (and ports, don't ignore this...)
#7 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by itouchlover View Post
how do i change firewall settings on Windows 7? i'm still getting used to it so i don't know yet! Thanks
open cmd and type in:
IPCONFIG

Find your Default Gateway, and then paste ur gateway on the browser's url tab...
Your default gateway should be:
Code:
192.168.1.1
and the username & password: admin
Then you have to forward the port manually.

Edit:
I made a vid to forward ports sometimes ago.. It's for Modern Warfare 2, but the way is the same, you have only to change the port number...
#8 · 15y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Tags for this Thread

None