Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7398729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:54:25+00:00 2026-05-29T03:54:25+00:00

My question is, how to connect to socket on romote mechine? I can only

  • 0

My question is, how to connect to socket on romote mechine?
I can only connect sockets on same network..

I wrote a simple code (in c), that simulate a server (open socket and listen for client). in Mac.

I’m trying to connect this socket as a client from iPhone (with simple objectiv-c code).

If my internet on both, server and client, is on the same network (WiFi) and in client I trying to connect to 192.168.1.x, it’s working.
But when, in client, I’m trying to connect via external IP (with the same port) connection is failed.

I never did this bofore. Maybe I miss somthing.. I’ve tried to turn my FireWall off. It did not help.

Thanks.

Edit: If it’s not clear.. my Mac is connected by router.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:54:25+00:00Added an answer on May 29, 2026 at 3:54 am

    In a setting like this, the “external IP” would typically be the IP of the router. In all likelihood you’ll need to configure the router to forward the relevant port to the internal IP address.

    It could also be the case that for the port forwarding to work, the request has to come in on the external (WAN) interface. This depends on how the router is configured. If that’s the case, you’ll need to make sure that you’re accessing the external IP via the cellular network and not the Wi-Fi connection on your iPhone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm gleaning from this question [ Facebook Connect Won't Validate that using Facebook Connect
Question 1 From SUSE man pages, I get the below details for socket connect
(See this question in ServerFault ) I have a Java client that uses Socket
I'm using a (Java) TCP socket to connect to a network-enabled device. Think about
EDIT: I can put the question in a shorter way that perhaps focuses more
Code Sinnpet: int CreateaTCPSocket() { int iSockID = ACE_OS::socket(......); ACE_OS::set_flags(iSockID,O_NONBLOCK); ACE_OS::bind(); if (ACE_OS::connect(iSockID ,....)
I have question. I create socket , connect , send bytes , all is
I realize that Java code will slow down when run in debugger. Question is,
I'm trying to write a program that uses sockets to connect with other instances
Question Is it possible to stop a Message Driven Bean (programmatically), so that it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.