Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WCF and WF
  4. How to access WCF service from another machine

How to access WCF service from another machine

Scheduled Pinned Locked Moved WCF and WF
questioncsharpioswcfwindows-admin
4 Posts 2 Posters 19 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Software2007
    wrote on last edited by
    #1

    - I created HelloWorld WCF service. - I followed instructions to host it on IIS 7.0 I can do this fine: localhost:4567/Service1.svc I can do this fine: 192.168.1.101:4567/Service1.svc This still shows port# though, I want to be able to do something like this without the need to specify the port: localhost/Service1.svc. so I can access it from my other machine 192.168.1.102. How can I set it up that way on my local machine? The end goal is to access my local machine from iOS and read JSON data. Thanks

    L 1 Reply Last reply
    0
    • S Software2007

      - I created HelloWorld WCF service. - I followed instructions to host it on IIS 7.0 I can do this fine: localhost:4567/Service1.svc I can do this fine: 192.168.1.101:4567/Service1.svc This still shows port# though, I want to be able to do something like this without the need to specify the port: localhost/Service1.svc. so I can access it from my other machine 192.168.1.102. How can I set it up that way on my local machine? The end goal is to access my local machine from iOS and read JSON data. Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You still need to specify a port number, the IP address alone is not sufficient for connecting across a network.

      speaking as ...

      S 1 Reply Last reply
      0
      • L Lost User

        You still need to specify a port number, the IP address alone is not sufficient for connecting across a network.

        speaking as ...

        S Offline
        S Offline
        Software2007
        wrote on last edited by
        #3

        Strange, I never had to with a web Service. I used to do this from my other machine: http://192.168.1.101/WebService/something.asmx. I think we don't need to specify a port once its deployed on IIS, isn't this the point of getting hosted on IIS so we can do: somedomain.com/service.svc ? Anyways, I was able to create a virtual directory so I could do that.

        L 1 Reply Last reply
        0
        • S Software2007

          Strange, I never had to with a web Service. I used to do this from my other machine: http://192.168.1.101/WebService/something.asmx. I think we don't need to specify a port once its deployed on IIS, isn't this the point of getting hosted on IIS so we can do: somedomain.com/service.svc ? Anyways, I was able to create a virtual directory so I could do that.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Yes, but in this case the port is selected according to the protocol specifier in the URI. The http specifier means redirect to the well-known port that handles the HTTP protocol: port 80.

          speaking as ...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups